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

3 Likes