From the course: Dynamo for Revit: Python Scripting
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
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.
Contents
-
-
-
-
-
(Locked)
Built-in Python modules6m 58s
-
(Locked)
Extending Python modules4m 30s
-
(Locked)
Saving our own module5m 6s
-
(Locked)
What is IronPython?2m
-
Accessing Revit nodes6m 18s
-
(Locked)
Importing the Revit API3m 12s
-
(Locked)
Working with the Revit API7m 46s
-
(Locked)
Revit conversions5m 53s
-
(Locked)
Dynamo conversions6m 57s
-
(Locked)
Navigating the Revit API5m 49s
-
(Locked)
-
-