Community
Is there a way to create a multi-value parameter with ilogic?
Solved! Go to Solution.
Solved by MegaJerk. Go to Solution.
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")