Community
The following rule works perfectly as an external rule except the Materiial and Appearnace pull downs do not update. I know I am missing something easy. Anyone have any ideas?
Here is my code
'Set the materials libraryassetLib = ThisApplication.AssetLibraries("iLogicTestMatLib") 'Set the current document activeoMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters 'Turn off error reporting on parameters and assign MATLIST to paramtest'If MATLIST does not exist then paramtest will have Nothing as a valueParameter.Quiet = True paramtest = Parameter.Param("MATLIST") 'Test to see if MATLIST exists and if it does not exist then create itIf Parameter.Param("MATLIST") Is Nothing Then oMyParameter.AddByValue("MATLIST", "Generic", UnitsTypeEnum.kTextUnits) End If MultiValue.UpdateAfterChange = True 'Re-assign the list of materials from the defined material library to the multivalue list'This assures that if there have been additions to the materials list the most current list'is what will be available in the pull down.MultiValue.List("MATLIST") = iProperties.Materials iLogicForm.ShowGlobal("Material", FormMode.Modal) iProperties.Material = Parameter("MATLIST") iLogicVb.UpdateWhenDone = True
Thanks in advance to whoever can help me