Revit 2015 exception with Autodesk.Revit.DB.CustomExporter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My plugin is causing an exception with Revit 2015 on the following line
CustomExporter exporter = new CustomExporter(document, m_ExportContext);
The above code works fine with Revit 2014.
The exception raised is:
An unhandled exception of type 'Autodesk.Revit.Exceptions.InternalException' occurred in RevitAPI.dll
Additional information: Failed to register a managed object for the currently active external application. A possible cause may be an inactive external application (not being invoked by Revit at present) attempting to assess the Revit API from a modeless dialog or another outside thread.
Has something changed in Revit 2015? The modeless dialog calling the above code is not "inactive". Does anyone know how I can get around this issue pls?
Thanks
Paul