Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
m_reza_shahparast
695 Views, 13 Replies

Message: Object reference not set to an instance of an object when used of MultiValue.List in assembly doc

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

@JelteDeJong 

Labels (3)