DynamoRevit package versions belongs to which Revit version

Dear Dynamo Team,

I am curious about how to figure out which Dynamo Revit version is the correct one for the current Revit installation.

For example in the folder %APPDATA%\Dynamo\Dynamo Revit\ are all kind of package versions starting from 2.1 to 2.5 for all my Revit installations.

For example for Revit 2020 the highest release number is 2.4. And for Revit 2021 it is 2.5.
I would like to automate the installation of my package depending on my Revit installations. In each package is a DynamoSettings.xml file.

Would it be possible to create an item, which would tell the correct Revit version?
something like 2020 ?

Thanks for the great work!
Cheers Amelie

@Minjie_Wang FYI - is this documented somewhere on AKN?

All the Dynamo Revit updates have been included in Revit online help document after Revit 2020 release, Revit 2020: http://help.autodesk.com/view/RVT/2020/ENU/?guid=GUID-A45F5AF9-6FCF-4F0C-90FA-309A964833B2
Revit 2021: https://help.autodesk.com/view/RVT/2021/ENU/?guid=GUID-A7F951BD-114D-434E-AED9-7BC27E3A5FDF

The online-help will not help me, because I would need that information offline and locally on the computer.

In my first request I wanted to know, if this information is somewhere locally stored to extract this information through a script?

Here ist the package folder hierarchy with the Dynamo Revit versions for 2020/2021:
And in each version package there is this DynamoSettings.xml:

Is it possible to store the Revit Version in this DynamoSettings.xml file for example like this:

Or is it already stored somewhere else?


Try the following python code that i have put onto a github page, it can get out the right package location for the currently running Dynamo version that is hosted onto either Revit/Civils 3d.


1 Like