Guides
Practical explanations of Python, pyRevit and the Revit API. With real code and examples from building services and greenhouse construction.
FilteredElementCollector explained, with Python examples
Every Revit script starts by finding elements. How the collector works, which filters you need, and why you sometimes find too many elements or none at all.
Read the guideLearning Python for Revit: where do you start?
An honest step-by-step plan, from your first line of Python to your own pyRevit button. With real example code and the mistakes almost everyone makes.
Read the guide"Attempt to modify the model outside of transaction": how to fix it
The error message everyone sees at some point. What it means, how to fix it in three lines, and the less obvious variants.
Read the guidepyRevit tutorial: install it and make your first button
From installation to your own button on the ribbon that counts your model. With the folder structure, a working script and the problems everyone runs into.
Read the guideRead and set Revit parameters with Python (with a Transaction)
Parameters are the data of your model. How to read them, how to fill them in bulk, and the pitfalls that make Set do nothing or raise an error.
Read the guide
Coming soon: guides on the FilteredElementCollector, reading and changing parameters, transactions, and setting up your own pyRevit library.