In order to work with the Revit API, multiple libraries need to access the Revit document, TransactionManager and Revit elements. All of these modules are summarized in this video.
- [Narrator] The Revit nodes it the Dynamo node library…provide an easy method to access the Revit project file,…but what if we want to interact with Revit in ways…that the node of Dynamo nodes don't provide…such as editing crop regions, placing elevations…or other missing Revit commands.…To do this, we can access the Revit API directly…within Python which will give us access…to more classes and methods to use within Dynamo.…To understand how to do this, let's first have…a look at what an API is along with…how to access the Revit document…and change something in the model.…
An API or Application Programming Interface…simply provides different methods…which one can use to communicate…from one piece of software to another.…In our case, the Revit API provides us methods…in a form of functions and classes…which we can use to send commands to Revit.…Revit will understand these through the API…and return something like an object or an action.…A common way of thinking about the API…is like a waiter in a restaurant.…Say we have a menu of items to order from…
Note: This course uses Dynamo 1.3.1 and Revit 2018. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Defining variables
- Making decisions with conditionals
- Controlling flow with operators
- Defining functions
- Working with external libraries in Python
- Accessing the Revit API with Python
Skill Level Beginner
1. Dynamo and Python
2. Python Basics
3. Working with Libraries
4. Revit API
Next steps2m 18s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.