Suppressing elements in component pattern using ilogic.

Suppressing elements in component pattern using ilogic.

Thomas_Savage
Advisor Advisor
864 Views
1 Reply
Message 1 of 2

Suppressing elements in component pattern using ilogic.

Thomas_Savage
Advisor
Advisor

Hello,

 

Can anyone help me with a code to suppress an element in a component pattern?

 

When I decrease my parts height, I am trying to suppress elements in my components pattern.

 

I have only managed to suppress the elements by, making them independent, grounding them, then suppressing them individually using ilogic. But it doesn't seem a good way to do it. seems a bit long winded. Can anyone help?

 

Thanks Thomas



Thomas Savage

Design Engineer


0 Likes
865 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Here is one example of how I do it based on a condition.

 

oMullBrgPat1.OccurrencePatternElements.Item(4).Suppressed = True

 

This of course would be for a known element item number.

You could use the oMullBrgPat1.OccurrencePatternElements.Item(OccurrencePatternElements.count).Suppressed = true

to suppress the last element

0 Likes