omarhernandez
New member
I am having a hard time believing that proprogram will not let you execute an if statement inside of an execute command.
I'm trying to execute dimension from an assy to a subassy. If there is anyone that could help me it would be greatly appreciated.Here's the if statement...
EXECUTE ASSEMBLY 045_PEA3
PASS_VAR_DOWN = PASS_VAR_DOWN
IF PASS_VAR_DOWN == YES
ANVIL_SPACER_BLOCK = ANVIL_SPACER_BLOCK
PUNCH_EXT_BACKUP_BLOCK = PUNCH_EXT_BACKUP_BLOCK
A_PEA3 = A_PEA3
B_PEA3 = B_PEA3
C_PEA3 = C_PEA3
D_PEA3 = D_PEA3
ENDIF
END EXECUTE
P.S. - I didn't have any empty lines in the program, I just posted It this way to make it easier to debug for myself.
Omar
I'm trying to execute dimension from an assy to a subassy. If there is anyone that could help me it would be greatly appreciated.Here's the if statement...
EXECUTE ASSEMBLY 045_PEA3
PASS_VAR_DOWN = PASS_VAR_DOWN
IF PASS_VAR_DOWN == YES
ANVIL_SPACER_BLOCK = ANVIL_SPACER_BLOCK
PUNCH_EXT_BACKUP_BLOCK = PUNCH_EXT_BACKUP_BLOCK
A_PEA3 = A_PEA3
B_PEA3 = B_PEA3
C_PEA3 = C_PEA3
D_PEA3 = D_PEA3
ENDIF
END EXECUTE
P.S. - I didn't have any empty lines in the program, I just posted It this way to make it easier to debug for myself.
Omar