Exception when extracting data from model

Exception when extracting data from model

Anonymous
Not applicable
427 Views
2 Replies
Message 1 of 3

Exception when extracting data from model

Anonymous
Not applicable

I'm using a custom add-on for Revit for extracting data from my models.

Sometimes Revit crashes during export, I suspect it happens when printing out ViewSheets, but I'm not sure, as the exception occurs irregularly. I don't get any exception in the add-on code, the process simply dies and the Autodesk error dialog box pops up.

The error occurs both in Revit 2016 (Build 16.0.428.0, 20150220_1215(x64)) and Revit 2017.2 (17.0.1150.0, 20171027_0315(x64) 2017.2.3)

I'm attaching a couple of logs. I hope you can see what can be causing the error.

0 Likes
428 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

This line from your dmp file seems like a good place to start:

 

The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

 

0 Likes
Message 3 of 3

jeremytammik
Autodesk
Autodesk

Maybe your code is trying to read data without being in a valid Revit API context. That used to work, sometimes, a little bit, in earlier versions. In the last few years, it has become almost impossible to make any use of the API without a valid context, and that might cause the kind of behaviour you describe.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes