06-14-2022
10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-14-2022
10:07 AM
Hi @Cadderman ,
For the case with more View reps than positional reps, where multiple products use the same positional reps, you could use something like this ( assuming the parameter list and form are already set up).
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Select Case ProductConfig Case "Product Type 1" oViewRep = "Product Type 1" oPosRep = "PosView1" Case "Product Type 2" oViewRep = "Product Type 2" oPosRep = "PosView2" Case "Product Type 3" oViewRep = "Product Type 3" oPosRep = "PosView1" End Select Dim oDoc As Document Dim oDef As ComponentDefinition oDoc = ThisApplication.ActiveDocument oDef = oDoc.ComponentDefinition oDef.RepresentationsManager.DesignViewRepresentations.Item(oViewRep).Activate oDef.RepresentationsManager.PositionalRepresentations.Item(oPosRep).Activate ThisApplication.ActiveView.Fit