Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
fakeru
in reply to: fakeru

Actually that didn't fix the problem.

The code doesn't work in a consisten manner. Occurrences are being suppressed not based on the rangeboxes interference. 

 

Later edit:

Now it seems like I found the problem. It was in this line: 

Set CutBox = AssDoc.ComponentDefinition.Occurrences.ItemByName("Cube:1").Definition.RangeBox

 Changed to

Set CutBox = AssDoc.ComponentDefinition.Occurrences.ItemByName("Cube:1").RangeBox

And it worked 

Autodesk Inventor 2015 Certified Professional