vba IF THEN expression to create a relation
vba IF THEN expression to create a relation
(OP)
I would like to create an "IF" "THEN" expression to allow on condition to exist in a part "Family Table". I've created 2 part interfaces and would like to express that "IF" one particular part feature (interface) is used (as expressed in the family table as "Y" (YES)) "THEN" the other feature (interface) is not used. Conversely, IF the answer in the family table is "N" (NO) for the feature, "THEN" the other feature (interface) is used. The feature (interface) names are "screw_interface" & "sem_interface".





RE: vba IF THEN expression to create a relation
RE: vba IF THEN expression to create a relation
RE: vba IF THEN expression to create a relation
RE: vba IF THEN expression to create a relation
IF L1_THRD=YES
M1_THRD=NO
ELSE
M1_THRD=YES
ENDIF
Pro-e tells me "INVALID SYMBOL FOUND" after the first line. At least it recognizes the language. Maybe the syntax is wrong. It seems to be ok with the remainder of the statement. If I remove the initial "IF", it comes up with "L1_THRD" being ok but after which I get "Relation has an error" after the "ELSE" & "ENDIF".
RE: vba IF THEN expression to create a relation
==
RE: vba IF THEN expression to create a relation
I'm blank on this one.
IF L1_THRD==YES
M1_THRD=NO
ELSE
M1_THRD=YES
ENDIF
Pro-E verified the relations in the "Look In" - "Feature"