Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Sergio.D.Suárez
in reply to: Anonymous

Hello, With this code you can read what is the view of active representation in your part or assembly.

 

Dim oDoc As Document = ThisDoc.Document  
Dim oDef As ComponentDefinition = oDoc.ComponentDefinition 

Dim ActViewRep As String = oDef.RepresentationsManager.ActiveDesignViewRepresentation.name
Dim ActPosRep As String = oDef.RepresentationsManager.ActivePositionalRepresentation.name
Dim ActLOD As String = oDef.RepresentationsManager.ActiveLevelOfDetailRepresentation.name

MessageBox.Show(ActViewRep)

 I hope it will be useful to develop what you need. regards


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn