Fundamentals > Program > Editing a Design > Replacing Components in Assembly Designs > To Interchange Components Using Relations
To Interchange Components Using Relations
1. In the INPUT statement, include a YES_NO variable.
For example:
INCL_CRANK YES_NO
2. Add an IF_ELSE clause in the RELATIONS.
For example:
RELATIONS
IF (INCL_CRANK == YES)
PART_NAME = "CRANK"
ELSE
PART_NAME = "SHAFT"
ENDIF
END RELATIONS
The ADD statement includes the variable defined in the ADD statement (it is enclosed in brackets).
For example:
ADD PART (PART_NAME)
...
END ADD