Import pyervit moduals to revit pythonshell

is it posible to import pyrevit moduals to use them in the python shell consol? and how?
thanks

1 Like

Yes. Goto RPS settings and add the full pyrevitlib/ path (inside the pyRevit installation) as the path. Then when import pyrevit, RPS can find pyrevit module in that folder

1 Like

Doesn’t seem to work for me. :frowning:
Do you mean to add /dev/pyrevitlabs/ to the search paths?

I also tried adding pyrevitlib to the search paths, but then I get import errors stating that ‘wpf’ is not found as a module, and ‘engine’ can’t be found.

I apologize for the typo. I meant pyrevitlib/. Corrected the original answer. Make sure pyRevit is attached using 2.7.7 engine which is the same as RPS

1 Like

thanks!! that’s ossem!!

1 Like

ps…
I attached the site Package as well, other wise RPS couldnt fine the modual - pyevent…
and then i can import the forms modualpyrevit

2 Likes