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: anandax

Hmm...  I was trying to think of some reason why it would not allow you to un-suppress a component, and one thing that comes to mind is that the assembly is ReadOnly for some reason.  One way the assembly may be ReadOnly is if we were dealing with a ModelState 'member' version of the document reference.

Try changing this:

ThisDoc.Document

...to this:

ThisDoc.FactoryDocument

...and see if that changes things.

When you suppress components, that suppressed or unsuppressed state is recorded in the ModelStates.  Or, if you are using a version of Inventor previous to 2022, they would be recorded in the LOD's (LevelOfDetailRepresentations), and that alternate line I suggested above would not work for you.  Which version are you using?

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)