pro-program problems wildfire 2.0
pro-program problems wildfire 2.0
(OP)
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=
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=





RE: pro-program problems wildfire 2.0
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
RE: pro-program problems wildfire 2.0
Thanks It worked great