From the course: Dynamo for Revit: Python Scripting
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Working with the Revit API
From the course: Dynamo for Revit: Python Scripting
Working with the Revit API
- [Instructor] To work with and edit the Revit document that Dynamo is operating in, we need to understand what the document manager and transaction manager classes are, both of which are found in the Revit API. The document manager class allows us to access the document within the Revit project file that Dynamo is working in. The document object represents the open Revit project file and therefore stores access to all the Revit elements as well as managing all the Revit data and views. The transaction manager class is required to make changes inside the Revit document. So for example, if we want to move a family or create a wall, we first need to start a transaction, make the model change, and then end the transaction. All the changes we make are committed to the model once the transaction ends. If we try to edit the model outside of a transaction, this will cause an error, as Revit will refuse the request. I currently have the Dynamo and Revit exercise files open for this video. In…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.