Revit Elements passed from Dynamo to the Python script node are wrapped in Dynamo specific classes. Learn to unwrap Revit elements in the Revit API and use them with the Revit API directly along with working with Revit API units.
- [Instructor] To work with Revit elements…from the Dynamo workspace with the Revit API,…we need to convert them into compatible types.…To learn how to do this, we need to understand…what wrapping and unwrapping are.…When we're working with Revit nodes in the Dynamo workspace,…we're actually working with Revit elements…that have been wrapped in a Dynamo object,…so that the element stays in sync…with both Dynamo and Revit.…Inside of the Dynamo object is a reference…to the actual Revit element within the Revit project.…For example, say we had two nodes in Dynamo,…a family type node and a family instance by type node,…the family type node will output a family type object,…which we can then input into the family instance node.…
Within this family type object is a reference…to the family type in Revit, known as a family symbol.…So when the family instance needs to create the family…using the Revit API, it will use the reference…to the family symbol, inside the family type object.…Think of this as though the nodes are…
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 Intermediate
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.