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
I suggest putting this in the Inventor Customization forum, a lot more ilogic gurus running around in there.
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
Chris Benner
Inventor Tube & Pipe, Vault Professional
Cad Tips Tricks & Workarounds | Twitter | LinkedIn
Autodesk University Classes:
Going With The Flow with Inventor Tube and Pipe | Increasing The Volume with Inventor Tube and Pipe | Power of the Autodesk Community | Getting to Know You | Inventor Styles & Standards |Managing Properties with Vault Professional | Vault Configuration | Vault - What is it & Why Do I Need It? | A Little Less Talk - Tube & Pipe Demo | Change Orders & Revisions - Vault, Inventor & AutoCAD | Authoring & Publishing Custom Content
Thanks.
I thought I was posting it there and had not realized I was in the wrong group