03-21-2019
06:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-21-2019
06:38 AM
Try this,
Dim doc As PartDocument doc = ThisApplication.ActiveDocument ' get AssemblyComponentDefinition Dim partDef As PartComponentDefinition partDef = doc.ComponentDefinition ' get Manager of Representations Dim dViewRepMgr As RepresentationsManager dViewRepMgr = partDef.RepresentationsManager Dim dViewRep As DesignViewRepresentation dViewRep = dViewRepMgr.ActiveDesignViewRepresentation Dim oName As String oName = dViewRep.Name ' get the first Representation view dViewRep = dViewRepMgr.DesignViewRepresentations.Item(oName) ' activate the first view dViewRep.Activate
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
