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

@Darkforce_the_ilogic_guy,

 

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