Missing Method

Missing Method

LightStanza
Explorer Explorer
693 Views
1 Reply
Message 1 of 2

Missing Method

LightStanza
Explorer
Explorer

Hi all,

 
I am currently working to support Revit 2020 but a method I am using from the RevitAPI.dll says that it will be removed in 2020 so it won't be backwards compatible with Revit 2018 and Revit 2019. How can I get around this when submitting the app to the Autodesk app store?
 
Thanks,
Mitch
0 Likes
Accepted solutions (1)
694 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Either submit separate versions of your add-in for separate versions of the Revit API, or, alternatively, implement multi-version support for your add-in using .NET Reflection.

 

That enables functionality to dynamically select the appropriate version of the method depending on what version or Revit your add-in is currently running in. 

 

Here are some examples:

 

https://thebuildingcoder.typepad.com/blog/2012/07/multi-version-add-in.html

 

https://thebuildingcoder.typepad.com/blog/2015/05/compatibilizar-entre-vers%C3%B5es-api-compatibilit...

 



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