Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Material pull down not updating after iLogic routine

0 REPLIES 0
Reply
Message 1 of 1
EdwardRose
257 Views, 0 Replies

Material pull down not updating after iLogic routine

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
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report