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

Hi CadUser46

The fastest method I found was:

DesignViewRepresentation.SetVisibilityOfOccurrences( Occurrences As ObjectCollection, Visible As Boolean)

 

You just need to create an ObjectCollection and add all your occurrences, and you can probably just use 

 

ThisApplication.ActiveEditDocument.ComponentDefinition.RepresentationsManager.ActiveDesignViewRepresentation

As the DesignViewRepresentation object (View Rep) if you don't already have it.

Hope this helps,

Luke