Message 1 of 6
How to set mate/Parameter conditions when a view representation is set Using ilogic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am new to ilogic, and I am trying to set conditions when a view representation is selected.
for instance when I select Closed view representation from the assembly tree, how can I specify the value(d342) of a mate and the value of the parameter RH. This is my code so far.
Dim doc As AssemblyDocument = ThisDoc.Document Dim oAsmCompDef As ComponentDefinition Dim oViewReps As DesignViewRepresentation oViewReps = oAsmCompDef.RepresentationsManager.DesignViewRepresentations If oViewReps.Activate = "Closed" Then 'Closed is a view representation name Parameter("SM50184_003:1", "RH") = 400 'These are the parameters to manually change. d342 = 535.000 mm Else d342 = 735.000 mm Parameter("SM50184_003:1", "RH") = 300 End If ThisApplication.ActiveView.Fit iLogicVb.UpdateWhenDone = True