Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic 2014: pattern suppression

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Allen_Hart
732 Views, 1 Reply

iLogic 2014: pattern suppression

I have a main assembly containing a small sub-assembly, PA01, that is patterned.  There is an iLogic rule to control suppression of the pattern using the statement: Component.IsActive("PA01 Pattern 1:1") = False.

 

The pattern does suppress/unsuppress on queue, but i get a warning when suppressed that it failed to compute:

 

PA01 Pattern.png

 

and if I force a rebuild outside of iLogic I get this:

 

PA01 message.PNG

 

Of course it cannot be edited because it is suppressed.  And when I set the rule to True all is well again.

It seems the elements are being suppressed but the pattern itself is not, therefore the warning. 

So, the question is; is this the way patterns are supposed to act when suppressed? 

Is there another way of writing the rule to prevent this warning?

 

Thanks,

Allen

 

1 REPLY 1
Message 2 of 2
Allen_Hart
in reply to: Allen_Hart

Update: I've discovered the reason for the error is because the component pattern is feature based. IOW, it is based on a hole pattern in another part. I redefined the pattern to use parameters instead. Now there are no errors.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report