There is an existing thread on this forum showing how to change the view rep in an assembly (using oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Red").activate) - Thank you to Curtis Waguespack - however I am trying to achieve the same with iLogic in a part file (multi-solid). Is this possible please?
Following iLogic rule activates "View1" and should work both in a part or in an assembly.
Keep in mind that viewreps capture the part and body appearance in a multi-body part but not the face or feature appearance.
Dim odoc As Document
Dim ocompdef As ComponentDefinition
odoc = ThisApplication.ActiveDocument
ocompdef = odoc.ComponentDefinition
MessageBox.Show("This viewrep does not exist", "Error")