I am trying to make a multivalue user parameter AND make it allow custom values through an iLogic form.
The problem is I have to go into the parameters and force it to allow custom values...I want to do this through iLogic with the rest of the program. I have been searching for literally HOURS and have gotten no closer to making it work.
Can anyone help me?
This is what I have.
SyntaxEditor Code Snippet
'THIS WILL CREATE A MULTIVALUE USER PARAMETER oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters ''THIS WORKS NOTE PARAMETERS WILL BE ADDED IN THE EXACT ORDER THEY ARE GENERATED IN THIS LIST oParameter=oMyParameter.AddByValue("Description", "", UnitsTypeEnum.kTextUnits) MultiValue.SetList("Description", "HOPPER","BED SIDE","MOUNT","BRACE","GUSSET") 'THIS ALLOWS US TO AUTOMATICALLY ADD COMMENTS TO DIFFERENT PARAMETERS'Parameter.Param("Description").Comment = "What is the part?"
Thank you. I was aware that option existed but thought it had to be used in conjunction with setting the multivalue text to allow custom inside of parameters. This option will work in this situation.
I would still like to know if it is possible to create it this way through iLogic.
This is Adam Nagy's Code
http://adndevblog.typepad.com/manufacturing/2013/03/allow-custom-values-setting-of-a-parameter.html