pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

pyrevitloader does not handle multiple ironpython.dll

Open kollyboi opened this issue 6 years ago • 5 comments

pyRevit_4.8.2 for Revit 2021.1

There seems to be some trouble if more than one addin tries to cast ironpython.dll to runtime? Something like that? I'm not skilled enough to pinpoint how to handle this. image

kollyboi avatar Nov 03 '20 14:11 kollyboi

If there is a way to tell pyRevit which version of IPY-engine to assemble, that would probably solve it? pyRevit_config.ini does not contain that option as far as I can see.

kollyboi avatar Nov 06 '20 10:11 kollyboi

You need to set the pyRevit's IronPython engine to match the engine loaded by other addons (seems like 2.7.9 in this case) See here https://www.notion.so/pyrevitlabs/Configure-pyRevit-461d8f564ba743d0ad7e843a7b3b2afe#f9d423c1e6864ab2b64b8d60a685162a

eirannejad avatar Nov 07 '20 22:11 eirannejad

I realise this, but is this possible without opening revit, pyrevit settings? Is the setting available in a file somewhere?

kollyboi avatar Nov 08 '20 07:11 kollyboi

Yes. You can reattach pyRevit with a different engine version for example: pyrevit attach master 277 --installed will attach using the 2.7.7 engine. See the help here

eirannejad avatar Nov 08 '20 08:11 eirannejad

Perfect. Thank you!

kollyboi avatar Nov 08 '20 08:11 kollyboi