over 6 years ago by Ali Safieddine
In this tutorial the tutor is using the module rpw for the script interface. While searching for this module I found that it has been changed to rpws (Revit python wrapper server) - correct me if I am wrong. but while importing this module in my script it was not recognized by revit pythonshell as shown in the attached image.
Sam Aston about 6 years ago
Hi Ali,
It is recommended to create a .py file in an IDE outside of Revit. For this course, we are using Visaul Studio (from Microsoft). IronPython uses slightly different syntax than Python 2.7, which is what PyRevit and scripts is written in. rpw would work in that environment. Let me know if that isn't clear.
Sam Aston about 6 years ago
Randal Root has a good youtube series on Visual Code and Python. https://www.youtube.com/channel/UC9tQQOgU9USSqDtR1ru3luA
Ali Safieddine about 6 years ago
hello Sam,
Thank you for your answer. I started using Visual studio code but I am finding some difficulties in adjusting the settings pf the IDE. like adding packages and libraries for revit and Autodesk. Any tutorial would you suggest for this issue?
Thank you