Solved: PyRevit and Revit 2022 w/ Dynamo – Autodesk Community

Thanks for clearing that up Jeremy. I am still wrapping my head around Revit API & .NET so I get a foggy brain sometimes.

 

I saw this on a webinar and misunderstood it (I only used IronPython inside Dynamo). Basically, the new Dynamo is transitioning from IronPython to CPython. Revit 2021 came with Dynamo and IronPython by default. Revit 2022 comes with Dynamo that has IronPython and CPython, and recommends using CPython. I am assuming in the future it will drop IronPython.

 

This won’t affect pyRevit the way I thought it would, Dynamo and pyRevit are independent of each other.

 

Top 5 New Features for Dynamo for Revit 2022

 

Here is a paste from article above:

 

One of the biggest things the Dynamo Core team has been working on is the transition from ironpython which limits python to version to 2.7 to Cpython which allows the use of python 3 syntax. This is HUGE for using python to access addition elements in the Revit API, as well as to handle more complex logic scenarios. As of the initial launch of Revit 2022, both ironpython and Cpython are installed as python engines and the engine used can vary within a single dynamo script (although that is not advised). Ironpython remains the default python engine, but can be changed in the settings. To help with the transition, there is a transition tool that will help migrate your python script from ironpython to Cpython.

The definition of insanity is doing the same thing over and over again and expecting different results