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: 

Create Multi-value parameter with iLogic

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
Lance127
13876 Views, 20 Replies

Create Multi-value parameter with iLogic

Is there a way to create a multi-value parameter with ilogic?


Lance W.
Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB
20 REPLIES 20
Message 21 of 21
A.Acheson
in reply to: jltw7PSW2

Hi @jltw7PSW2 

Likely this isn't the best post to refer to for adding parameters to a drawing because the parameters is reach from the drawing document and not from the componentdefinition of the part/assembly. Here is the API help for drawing document and parameters object. 

 

Dim drawDoc As DrawingDocument = ThisDoc.Document
Dim drawParams As UserParameters = drawDoc.Parameters.UserParameters
Dim testParam As UserParameter

Try
	testParam = drawParams.Item("TestParam")
Catch 
	testParam = drawParams.AddByValue("TestParam" , "InitialValue", UnitsTypeEnum.kTextUnits)
End Try
	MultiValue.SetList("TestParam", "ASSEMBLY DETAILS", "CONTROL DETAILS", "STEEL DETAILS")

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan

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

Post to forums  

Autodesk Design & Make Report