Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to create a New PropertySet object where a new properties will be stored during a Rule.
But I'm getting following error: Object reference not set to an instance of an object.
Tried to declare variable as New, but it causes error (Keyword New cannot be used inside an interface - my translation to EN).
Sub Main()
Dim iPropSet As PropertySet
Dim iPropSet2 As PropertySet
'Logger.Debug("SetCustomIprop Sub")
iPropSet = ThisAssembly.Document.PropertySets("User Defined Properties")
Logger.Debug(1)
iPropSet.Add("value", "name")
Logger.Debug(2)
iPropSet2.Add("value", "name") '<---Error is here
Logger.Debug(3)
End Sub
Thanks for advice.
Inventor 2022, Windows 10 Pro
Sorry for bad English.
Solved! Go to Solution.