Resources
Summary
Prepare Your Dev Environment (Part 1: Revit Plugins)
We will need to install the following Revit Plugins:
- Revit Lookup
- Revit Python Shell
- pyRevit
That's the holy trio for Revit API development with python.
P.S. We will use these plugins through-out the whole course, so you will get used to them.
Revit Lookup - by Jeremy Tammik + Community
This is the most used plugin for Revit API development.
It allows us to access and view the data about our Revit Elements. It is amazing help for writing our code, because we can preview all properties and methods.
Not only we see their names, but also the actual values that they return. This preview will help you to follow the same steps in your scripts to access same values.
🎦 Follow installation instruction in the video.
Revit Python Shell - by Daren Thomas
The next plugin will allow us to run python scripts within Revit environment. It's an interactive python shell that is useful for debugging and testing python code.
We could run complete python script with it, but pyRevit will be a much better option for complete tools.
🎦 Follow installation instruction in the video.
pyRevit - by Ehsan Iran-Nejad + Community
- There are a lot of custom tools
- You can install Additional Extensions (incl. EF-Tools)
- Everything is 100% Open-Source, so inspect the code.
- Easy to create custom Extension (Folder Structure + python files)
- a lot of extra modules with pre-written functions.
pyRevit Additional Extensions
You can also install additional pyRevit extensions and have a look how they were written.
👀 Check out EF-Tools extension.
HomeWork
✅ Make sure you install all necessary plugins before you move to the next lesson.
Revit Plugins:
1️⃣ Revit Lookup
2️⃣ Revit Python Shell
3️⃣ pyRevit
💡 Additionally, check out extra pyRevit extensions.
⌨️ Happy Coding!