Hi,
I would like to have the material, color etc. as parameter so i can change it with an ilogic form.
In this video you can see what i mean:
http://wikihelp.autodesk.com/Inventor/enu/2012/Videos/ilogic_form_designer_edit_form
When I make a ilogic form i can only select parameters and iproperties.
Thanks in advance!
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
Hi m.rondeel,
There is an example of setting up a form to do this exact thing in Chapter 20 of Mastering Autodesk Inventor 2012, but since you're asking I assume you don't have that book around.
So here's a snippet that will pull the materials found in the part into a multivalue parameter (that you create ahead of time) and then will list them in a listbox, and then it changes the part to used the selected material. This should get you pointed in the right direction.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
MultiValue.List("Material_List") = iProperties.Materials
Material_List= InputListBox("Select a Material", MultiValue.List _
("Material_List"), Material_List, "iLogic", "Available Materials")
iProperties.Material = Material_List
iLogicVb.UpdateWhenDone = True
I don't really like the fact that i have to use a rule and program it, would like this to be changed by Autodesk.
But yes, this solution works great, thanks a lot!
Hi Curtis,
Im doing something similar but working with an assembly. Can i drive the Material parameter from here? Im nearly there, I'll attach a snapshot.
Thanks,
Lewis
The way I handle this is to replicate the material parameters and code as listed above into the part that I want to control and then use code in the assembly level to control the material parameter in the part.