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

Thank you for the help, unfortunately it doesn't work with suppressed components.

I placed the following code at line 4 (within the if statement) "MessageBox.Show(oRefDoc.DisplayName, "Title")" and noticed that only the unsuppressed components are being showed. So I guess the "ReferencedDocuments" only works with unsuppressed components and not with suppressed components.

 

I just came across this post by @JelteDeJong  and it says that you should look at occurrences. It also says the following "if you want to do something with suppressed documents the you will need to load them by opening them." The code in the post opens the suppressed parts, but doesn't close them. I need the code to work with automated models, so I can't manually close the files. Is there a way to also close the files after the change?