Set PosRep in Subassembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i am just copying macros whichever fit my needs....and i came across a vba view rep code...can this be converted to a positional representation?
the structure would be the same, top level assembly and sub assembly 1, 2, 3, etc...i need to set the posrep of the sub assemblies..
any help is much appreciated...
thanks joel..
the following code is the closest i could reference however it is based on view rep...
Dim aDoc As AssemblyDocument
Set aDoc = ThisApplication.ActiveDocument
Dim oAsmCompDef As ComponentDefinition
Dim oCompOcc As Inventor.ComponentOccurrence
Set oAsmCompDef = aDoc.ComponentDefinition
For Each oCompOcc In oAsmCompDef.Occurrences
If oCompOcc.Visible = True Then
If oCompOcc.DefinitionDocumentType = kAssemblyDocumentObject Then
Call oCompOcc.SetDesignViewRepresentation("DH - MB", , True)
Else
End If
Else
End If
On Error Resume Next
Next

