- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hope someone can help with what is probably a naive question from someone just starting out on the path of programming.
I have been working on a small app for Revit 2016 and have managed to retrieve the required data from the database and display this in a ListView. Clicking a form button then creates a list of the selected items and then invokes a method (located on the form) in which the Transaction is started. It is intended that this would then action the list of selected items. The programme compiles without error or Warnings but during debugging Revit closes upon reaching the transaction with an “Access Violation” I have also noticed that the doc reference within the Transaction reference within comes up “null” during debugging.
Am I missing something with the above or is the problem as I suspect that I have left the API call and therefore need to look at External Events? For clarity the Form is Model not Modeless.
In preparation I have been exploring the code within the SDK samples on ModelessForms as well as created a simple app utilising the External Events code within the Revit 2016 Help and unfortunately I seem to run into the same problem when running them and other sample external event code I have downloaded.
Revit Error Dialog displays stating “Object reference not set to an instance of an object”
I have not amended the sample code in any way and keep getting the same error no matter which sample External events programme I try. Please enlighten me as the only way I find I really learn how to programme is through exploring working sample code.
Solved! Go to Solution.