Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to change the part material trough an iLogic form.
The code below reads the available materials and puts them in a multivalue list.
The problem I have is that the rule doen't make the part material change to what I've selected in from the multivalue list.
Please Help..
SyntaxEditor Code Snippet
Try Sl = Parameter.Param("SheetMetalType") Catch oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters oParameter=oMyParameter.AddByValue("SheetMetalType","undefined", UnitsTypeEnum.kTextUnits) End Try Dim smStyleList As New ArrayList For Each smStyle As SheetMetalStyle In ThisDoc.Document.ComponentDefinition.SheetMetalStyles smStyleList.Add(smStyle.Name) Next smStyle Parameter.Param("SheetMetalType").Comment = "Parameter set by Rule -- RunOnSheetMetal-- " MultiValue.List("SheetMetalType") = smStyleList Try p = Parameter.Param("Partmaterial") Catch oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters oParameter=oMyParameter.AddByValue("Partmaterial","Steel, Mild", UnitsTypeEnum.kTextUnits) End Try MultiValue.List("Partmaterial") = iProperties.Materials RuleParametersOutput() iLogicVb.UpdateWhenDone = True iProperties.Material = Partmaterial Parameter.Param("Partmaterial").Comment = "Parameter Set by Rule -- RunOnSheetMetal-- "
Solved! Go to Solution.