07-04-2019
06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-04-2019
06:12 AM
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