cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Summary - Relations evaluated on one instance only

dgschaefer
21-Topaz II

Summary - Relations evaluated on one instance only

Thanks to Robert for this suggestion, which worked perfectly:



Not totally sure if this will work, but you could try writing a relation
(feature or part) something like:



IF REL_MODEL_NAME == "name of instance you want to drive"

d# =

ENDIF



and then fill out the rest of the instances in the family table.  I
would think this should only drive the one instance. 



I added an ELSE statement to drive the other instances by a different
relation.



Very nice, thanks again.



Doug Schaefer

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn
2 REPLIES 2

Since the list likes hints from Joel <joelonsoftware.com>

Write the comparison as IF "name of instance you want to drive" == REL_MODEL_NAME
That way, if you mess up and type = instead of ==, you get an error rather than an incorrect assignment that can be very difficult to find.

Great point. These are the subtle things separate great software
programmers from the herd...





Christopher F. Gosnell



FPD Company

124 Hidden Valley Road

McMurray, PA 15317
Top Tags