Exception thrown if changing attributes e.g. transparency
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
we are using the dll Autodesk.Navisworks.Api in a custom developed Plugin. In this Plugin we use different apis, e.g. find an element or focus an element.
But we also want to set a general transparency to the full model for example.
Reading apis are working fine, but if we want to change something like transparency, then we get following message and Simulate is closing:
Exception thrown at 0x00007FFCA863AF30 (lcutil.dll) in Roamer.exe: 0xC0000005: Access violation reading at position 0x0000000000000000
Below you can find the source:
try
{
Document localDocument = Application.ActiveDocument;
var collection = localDocument.Models.CreateCollectionFromRootItems();
localDocument.Models.OverridePermanentColor(collection, Color.FromByteRGB(color.R, color.G, color.B));
}
catch (Exception ex)
{
Logger.Error(ex);
}
Does anyone had the same Issues?