Using IronPython 3.4.2 engine for pyrevit

Hi all,

I have installed Revit 2025 and the latest version of pyRevit, as shown in the image below…I would like to activate the IronPython 3.4.2 engine in order to write my scripts using this engine. However, I am unable to activate it in the pyRevit settings, as the “Activate Engine” option is grayed out, and I don’t know how to configure or activate it using the pyRevit CLI?

Remark : I installed pyrevit using this signed version “pyRevit_5.3.1.26022_signed
Any help would be appreciated.

Thanks.

This should work in the command line

pyrevit attach master 342 --installed --allusers

Sent from my phone, expect typos :sweat_smile:

1 Like

Hi @Jean-Marc
I tried your code however I’m unable to install Ironpython due to the following error message:

image

I also noticed that I have both Revit 2023 and Revit 2025 installed on my machine, as shown below:

image

Thanks.

This command requires you to have all Revit instances closed

1 Like

Hi @Jean-Marc

You are right…I had to restart my computer and run cmd as administrator to be able to execute the command line…it works now and Ironpython 3.4.2 is the active engine!
another question: since IronPython 3.4.2 is now the active engine, can I run my previous scripts that use IronPython 2.7 as-is, without changing anything in the script structure especially regarding WPF implementation? (I mean, can I use the same syntax as before to load and use WPF?)

Thanks.