Message 1 of 3
iLogic Error The object reference was not set to an object instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I took the code from this help page:
And made this out of it (just an extraction):
Dim newInst2 As Autodesk.Factory.PublicAPI.Objects.v2.AssetInstance = New Autodesk.Factory.PublicAPI.Objects.v2.AssetInstance() With { .AssetID = "41c84844-7b28-4903-bebd-365ca3a6a53c", .Position = New System.Windows.Media.Media3D.Matrix3D() With { .OffsetX = -200, .OffsetY = 0, .OffsetZ = 0 } } newInst2.Parameters("Length") = "400"
The code runs great until I want to change the Length. Then is says;
The object reference was not set to an object instance.
I thought "Dim newInst2 As ...." is doing exactly this. What is missing here?
Thank you.