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

I attached one more version of the code, but I am not that confident that it will work for you either, because I have not tested it on any local files.  I do not use this type of routine myself, because I control component suppression in my assemblies at each level, as I am building my model files, with ModelStates.  Then when I put my model into an assembly as a component, I set the component to the ModelState I want, which controls which sub-components will be suppressed.  So, I haven't tried a multi-level, top to bottom, wave of un-suppressing components since the ModelStates were involved.

 

If this code still does not work, I would suggest that you set-up the needed ModelStates within each of your sub-components, in which the component suppression is the way you want it, then just set the component's ActiveModelState to the one you have prepared for that situation, instead of trying to control all levels of suppression, down from the top level, all at once.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)