Skip to main content
21-Topaz II
January 20, 2011
Question

Summary - Relations evaluated on one instance only

  • January 20, 2011
  • 2 replies
  • 999 views
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.

2 replies

1-Visitor
January 20, 2011
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.

1-Visitor
January 21, 2011
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