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

Finding if a feature is suppressed with relations?

bentod1
1-Newbie

Finding if a feature is suppressed with relations?

I don't know the best way to accomplish the following:
I have a generic part with one family table instance.
The instance only has one suppressed feature.


I want a relation that changes a dimension based on the suppression state of that feature.
If the feature (ID 318) is not suppressed, the dimension (M) = <my formula=">.
If the feature is suppressed the dimension = 0.


Here's what I tried (unsuccessfully):


IF EXISTS("fid_318")
M=.03*(tan(E/2))
ELSE
M=0
ENDIF


I would appreciate any help.


Todd


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.
4 REPLIES 4

Did you ever find a way to do that?

In Reply to:
I don't know the best way to accomplish the following:
I have a generic part with one family table instance.
The instance only has one suppressed feature.


I want a relation that changes a dimension based on the suppression state of that feature.
If the feature (ID 318) is not suppressed, the dimension (M) = .
If the feature is suppressed the dimension = 0.


Here's what I tried (unsuccessfully):


IF EXISTS("fid_318")
M=.03*(tan(E/2))
ELSE
M=0
ENDIF


I would appreciate any help.


Todd

Todd,

Try adding the dimension "M" to your family table columns...

For the generic the value is ".03*(tan(E/2))", for the instance the
value is "0".

Good luck...

Hollie




Robert,

In reality the other-way-around is simplier and easier: Use Pro/Program
to suppress a feature if some parameter is a certain value and use the
same parameter in your family table in place of the feature. Drive the
relation for M the same way.

Here's an example assuming that you've added the parameter FEATON as
type YES/NO

RELATIONS
IF FEATON
M=.03*(tan(E/2))
ELSE
M=0
ENDIF
END RELATIONS
...
IF FEATON
ADD FEATURE (xxxx)
......
END ADD
ENDIF

Regards,

Kevin


Kevin Schoonover
PTC Channel Technical Manager
Western North America

From the responses, I gather that it is not possible to determine if a feature is suppressed or unsuppressed for use in a relations conditional statement.

All the responses I saw suggested creating a parameter and putting the parameter into the family table instead of the feature. Then having pro/program do a conditional statement on the parameter to determine if the feature should be suppressed or unsuppressed.


Announcements