Results 1 to 4 of 4

Thread: API Versions

  1. #1
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116

    Default API Versions

    Can anyone answer this.

    Is the API backward compatible? Or should we release a version for each Revit version.

    Guy

  2. #2
    I could stop if I wanted to Danny Polkinhorn's Avatar
    Join Date
    2003-12
    Location
    Honolulu, HI
    Posts
    447

    Default Re: API Versions

    The API appears backwards compatable as long as you don't use methods that only exist in 8.1 (obviously). I think in the future you'll be able to tell what version (and vertical) you're dealing with so you can adjust your code accordingly.
    Danny Polkinhorn
    WATG

  3. #3
    Autodesk Revit Developer
    Join Date
    2004-02
    Location
    Waltham
    Posts
    468

    Default Re: API Versions

    Generally, expect to release a fresh build of your plugin for each version of Revit. This is very likely with the weak versioning support of COM, maybe not necessarily so with .net, I'm not sure.

    Rebuilding is not a very big deal, especially once you've scripted the whole process. So the question is how much compatibility there is between versions - how much code you have to touch to make sure your application still works correctly.

    Obviously, your plugin will fail if it tries to use features that are not implemented in the version you are using. So, this kind of backward compatibility is out of question.

    But, of course, you want forward compatibility. You wish the API didn't change or Revit upgraded your code like it upgrades a project. Well, the API may change, and you may have to modify things. But there are capable developers in charge, feeling your pain. We try to look ahead and minimize painful changes. I don't think we broke forward compatibility over the two versions, but we will try to document what's going on.

  4. #4
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116

    Default Re: API Versions

    Cheers Fedor,

    or Revit upgraded your code like it upgrades a project.
    I like this idea. If Revit could write the code that would be perfect I don't have a problem releasing multiple versions or upgrading. It was really just a question of how .NET works the API when there are multiple versions of Revit installed.

    but we will try to document what's going on.
    A what's changed document would be really useful.

    Guy

Similar Threads

  1. Different Versions of CAD
    By Statler in forum CAD Management - General
    Replies: 3
    Last Post: 2009-12-11, 09:25 PM
  2. Upgrade versions of LT
    By domvanroo in forum AutoCAD LT - General
    Replies: 2
    Last Post: 2009-05-15, 03:13 AM
  3. earlier versions
    By greg mal in forum Inventor - General
    Replies: 2
    Last Post: 2008-12-27, 03:35 PM
  4. Combinations of versions
    By GuyR in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 3
    Last Post: 2006-10-23, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •