Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pro-program problems wildfire 2.0 1

Status
Not open for further replies.

SteveVan

Mechanical
Dec 10, 2002
16
0
0
US
Model background
I have a Skeleton part with datum planes an datum axis.
I'm using pro-program to move 2 different datum plane angle dimensions. Here is my program
Dimension d14 is the dimension I'm inputting the change on, D46 is the datum i'm moving from D14

Input
drum_ang number
"enter drum ang, load or dump"
End Input

Relations
load=17
dump=-93
$d14=drum_ang
IF (d14==17)
$d46=31
END IF
IF(d14<17)
$d46=-83
END IF

This works, Except I have to regenerate twice. This causes the asm to fail. Does anyone know how to force a regeneration in the If statement, or how i can program this so it only needs one regeneration.
Thanks
Steve
$d14=
 
Replies continue below

Recommended for you

Not totally sure if this will work, but:

Try to have it perform the check on drum_ang, instead of d14. Pro/E is seeing the previous value of d14 and then changing it to your input. If you have it check the input variable, it should work how you want it to,

So it would look like:

Relations

IF (drum_ang==17)
$d46=31
END IF

IF(drum_ang<17)
$d46=-83
END IF

$d14=drum_ang

load=17
dump=-93
 
Status
Not open for further replies.
Back
Top