Message 1 of 1
Get error:"Object reference not set" for "multivalue.setlist" in assemblydoc when i create userparameter with rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When i follow your tutorials and used of This :
Dim doc as AssemblyDocument = ThisApplication.ActivateDocument
Dim oAssDef as AssemblyComponentDefinition = doc.ComponentDefinition
Dim oUsPar as userparametes = oAssDef.parameters.Userparameters
Dim oPar as Userparameter = oUsPar.AddByValue("Side", "", unitstypeenum.ktextunits)
Dim oArr as New ArrayList
oArr = MultiValue.List("Side")
oArr.Add("Left Side")
oArr.Add("Right Side")
MultiValue.List("Side") = oArr
Get this error:
" Object reference not set to an instance of an object"
I think "MultiValue.List()" couldn't get object of userparameter