Hi fellow Creo Users,
I am currently running Creo 10. I have a situation where I need to create a Pro/program. And for some reason I can not get it to function correctly.
I have gone through many examples on this site and via the google with little luck getting this to function correctly.
I have a 3 part assembly, my first part (BASE) is fixed constrained via X, Y, Z. My second part (screw assy) is fully constrained, and a dimension is given called D33=ball_to_ball. My third part is a “spring” that is flexible by a measurement.
I want to create a pro/program that changes the ball_to_ball with 4 different values.
INPUT
Position1 YES_NO
“Do you want position 1?”
Position2 YES_NO
“Do you want position 2?”
Position3 YES_NO
“Do you want position 3?”
Position4 YES_NO
“Do you want position 4?”
END INPUT
RELATIONS
Position1=10.00
Position2=40.00
Position3=30.00
Position4=60.00
BALL_TO_BALL = POSITION1
IF POSITION1 == NO
ELSE
BALL_TO_BALL = POSITION2
IF POSITION2 == NO
ELSE
BALL_TO_BALL = POSITION3
IF POSITION3 == NO
ELSE
BALL_TO_BALL = POSITION4
IF POSITION4 == NO
ELSE
ENDIF
ENDIF
ENDIF
ENDIF
END RELATIONS
What I am trying to accomplish is the user to pick the known position required to represent the assembly they desire. By answering yes or no to the prompts them to move on to the next position. The positions values are fixed by the design.
Sorry for the long explanation. Any help would be greatly appreciated!
I am currently running Creo 10. I have a situation where I need to create a Pro/program. And for some reason I can not get it to function correctly.
I have gone through many examples on this site and via the google with little luck getting this to function correctly.
I have a 3 part assembly, my first part (BASE) is fixed constrained via X, Y, Z. My second part (screw assy) is fully constrained, and a dimension is given called D33=ball_to_ball. My third part is a “spring” that is flexible by a measurement.
I want to create a pro/program that changes the ball_to_ball with 4 different values.
INPUT
Position1 YES_NO
“Do you want position 1?”
Position2 YES_NO
“Do you want position 2?”
Position3 YES_NO
“Do you want position 3?”
Position4 YES_NO
“Do you want position 4?”
END INPUT
RELATIONS
Position1=10.00
Position2=40.00
Position3=30.00
Position4=60.00
BALL_TO_BALL = POSITION1
IF POSITION1 == NO
ELSE
BALL_TO_BALL = POSITION2
IF POSITION2 == NO
ELSE
BALL_TO_BALL = POSITION3
IF POSITION3 == NO
ELSE
BALL_TO_BALL = POSITION4
IF POSITION4 == NO
ELSE
ENDIF
ENDIF
ENDIF
ENDIF
END RELATIONS
What I am trying to accomplish is the user to pick the known position required to represent the assembly they desire. By answering yes or no to the prompts them to move on to the next position. The positions values are fixed by the design.
Sorry for the long explanation. Any help would be greatly appreciated!