Skip to main content
1-Visitor
November 24, 2022
Solved

How to resume a suppressed Feature by using relations?

  • November 24, 2022
  • 1 reply
  • 3962 views

Hi,
How can I resume an already suppressed feature by using relations? For example:

IF d12==100
ADD SUPPRESSED FEATURE
     INTERNAL FEATURE ID  570
     PARENTS = 410(#12) 1305(#17)

AND ADD

AND IF

 

If the feature is already suppressed and the equation (if d12==100) is true, the feature that gets added is in a suppressed state. How can I fix this?

Is there a conditional statment that removes "SUPPRESSED"?
Or is there a syntax in pro program that will regenerate automatically?



Best answer by MartinHanak

@MW_9726196 wrote:

I understand Situation 1 and Situation 2. My Problem only occurs after Situation 2, when I change d1 to 100 again. 
After the feature has been suppressed from situation 2 (because d1 wasn't 100), I can't unsuppressed it again without doing it manually, even if d1 exactly is 100 again.
I am looking for a solution, so I can change from situation 2 to situation 1 and the feature "sketch 1" shows up without having to delete the word "suppressed" manually.


Hi,

1.] What Creo version do you use ?

2.] If you can, please pack your model into zip file and upload zip file.

3.] Before you start Pro/Program creation, the specific feature must not be suppressed

4.] See uploaded video (Creo 7.0.5.0)

 

1 reply

24-Ruby III
November 24, 2022

@MW_9726196 wrote:

Hi,
How can I resume an already suppressed feature by using relations? For example:

IF d12==100
ADD SUPPRESSED FEATURE
     INTERNAL FEATURE ID  570
     PARENTS = 410(#12) 1305(#17)

AND ADD

AND IF

 

If the feature is already suppressed and the equation (if d12==100) is true, the feature that gets added is in a suppressed state. How can I fix this?

Is there a conditional statment that removes "SUPPRESSED"?
Or is there a syntax in pro program that will regenerate automatically?




Hi,

you have to do it the other way around. That is, to resume a feature and turn it off using an IF statement.

1-Visitor
November 25, 2022

Hi,
That's what I was originally doing: 

 

IF d12==100
ADD FEATURE
     INTERNAL FEATURE ID  570
     PARENTS = 410(#12) 1305(#17)

AND ADD

AND IF

 

But let's say, that in the first version d12 is not 100, the feature gets suppressed and it looks like this:

 

IF d12==100
ADD SUPPRESSED FEATURE
     INTERNAL FEATURE ID  570
     PARENTS = 410(#12) 1305(#17)

AND ADD

If now I want to use the second version where d12 is in fact 100, the feature that gets added is still suppressed. That's why I am looking for a statment that removes "suppressed" or would regenerate the feature into its original state (not suppressed).



19-Tanzanite
November 25, 2022

You can't change the user-assigned suppressed/unsuppressed state with relations or pro/program.

Basically, if D12 is 100, then model will regenerate with feature ID570 suppressed.  you'll be able to unsuppress the feature manually.

If D12 is not 100, then the feature ID570 will show up in the model tree as suppressed, but you won't be able to interact with it.

Also, in your code, "AND"s should be "END"s, I think.