My Revit Add-on for Revit 2016 is crashing on the load with Revit 2017

My Revit Add-on for Revit 2016 is crashing on the load with Revit 2017

Anonymous
Not applicable
700 Views
3 Replies
Message 1 of 4

My Revit Add-on for Revit 2016 is crashing on the load with Revit 2017

Anonymous
Not applicable

 

 

My Revit Add-on for Revit 2016 is crasCrash.jpg

hing on the load with

Revit 2017.  How to cure it ? 

0 Likes
Accepted solutions (1)
701 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Debug it and see what is causing the crash.

 

Nobody else will be able to tell you without doing the same thing, stepping through the source code.



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

Message 3 of 4

Anonymous
Not applicable

Thank you, Jeremy.

 

When I am doing

  application.RegisterDockablePane(_userDockablePaneId, _applicationName, Application._thisApp.GetMainWindow() as IDockablePaneProvider);

 

I am getting

 

Could not load type 'Autodesk.Revit.UI.Rectangle' from assembly 'RevitAPIUI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null'.

 

This call worked for Revit Architecture 2016.

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

Look at the documentation of the Rectangle class in the Revit API help file or online:

 

http://www.revitapidocs.com/2017/?query=Rectangle#searchModal

 

As you can see there, this class seems to have moved from the UI namespacein the Revit 2015 and 2016 APIs to DB in Revit 2017:

 

rectangle_class_moved_from_ui_to_db.png

 

Cheers,

 

Jeremy



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