There is an existing thread on this forum showing how to change the view rep in an assembly (using oAsmCompDef.RepresentationsManager.DesignViewRepre
Solved! Go to Solution.
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 Try ocompdef.RepresentationsManager.DesignViewRepresen
tations.Item("View1").Activate Catch MessageBox.Show("This viewrep does not exist", "Error") End Try
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register