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

I'm thinking you could probably use the same code from the other post here:

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/deleting-parts-in-a-subassembly-from-a-... 

But just change:

oSubOcc.Delete

to

oSubOcc.Visible = False

 However, keep in mind the current design view representation settings and/or ModelState settings.

See if that will work for you.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb: or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)