- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?