Is RevitApi 2016 compatible with Revit 2015?

Is RevitApi 2016 compatible with Revit 2015?

Anonymous
Not applicable
490 Views
2 Replies
Message 1 of 3

Is RevitApi 2016 compatible with Revit 2015?

Anonymous
Not applicable

If I write a Revit addin using Revit api 2016 (I mean RevitApi.dl and RevitApiUi.dll in Revit 2016 folder) The plugin does not run without any problems on a system with Revit 2015 installed.

For example I have been developing a revit plugin using the latest version of dll from revit 2016. And I have used several methods and properties that are only available in the latest api version. For example I used somewhere the following code:

 

Autodesk.Revit.ApplicationServices.Application.IsLoggedIn

 

This is not available in revit api 2015. So it throws SystemMissingMehotdException.

So How could I handle this if one of my clients uses revit 2015 not 2016? 

 

Do I have to use Revit api 2015 if i want support clients who use revit 2015? Does exist an way to use Revit APi 2016 capabilities in revit 2015?

Thanks for any help.

0 Likes
Accepted solutions (2)
491 Views
2 Replies
Replies (2)
Message 2 of 3

Mustafa.Salaheldin
Collaborator
Collaborator
Accepted solution

This can't be done, if your code method is not backward compatible then you will not be able to execute it in the older Revit version.


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

Message 3 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

To put it clearly and succinctly:

 

> Do I have to use Revit 2015 API if I want to support clients who use Revit 2015?

 

Yes.

 

> Does any way exist to use Revit 2016 API capabilities in Revit 2015?

 

No.

 

Cheers,

 

Jeremy



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