I’m curious if there is a way to specify what the default IronPython engine is when pyrevit is installed? I see the cpython engine is part of the pyrevit_config.ini file, but not the IronPython engine. I know how to switch it manually, but we would like to control what the engine is for everyone at our firm via the installer or through some deployable settings. Is this possible?
You might want to take a look at the pyrevit CLI tool. It allows you to manage your pyrevit installation from a terminal. You can specify which ironpython version is used when attaching pyrevit to revit. In general the cli tool could allow you to make pyrevit installations a lot easier in your firm.
the command could be something along these lines
pyrevit attach pyRevit-Master 279 --all
pyrevit attach --help for the exact syntax.
You can swap 279 with your desired ironpython verison.
Anyhoe, check the pyrevit cli documentation, I think it’s got everything you need.
Sidenote; You MIGHT need to first detach your pyrevit clone from revit before attaching it again, not sure. Just make sure to not have revit running while doing it.
You don’t have to.