Once elements are created in Revit using Dynamo or Python, there is often the need to adjust the element, either by moving, rotating, or mirroring. Learn about different ways to adjust elements directly from Python.
- (Lecturer) In the Revit API there are several…different ways to adjust elements as we would in Revit,…like moving, mirroring and copying elements.…Let's have a look at how we can use some of these…functions from within Python.…In the Revit exercise file, you can see that I've got…a developing design,…which contains rooms, doors and a little bit of…furniture.…In the Dynamo exercise file we a node that has…selected the couch with in the project file and…is input into a Python script node.…Go ahead and open up the Python script…and as you can see we already have the…libraries we need imported and our couch…has been unwrapped and assigned to the…couch variable on line 22.…
We also have the current document assigned to…the doc variable and then a filtered…element collector which is using a room filter…from the Architecture name space to collect all…rooms in the project file.…I have then created an empty variable named Office,…so that when I look through each of the rooms…I can check if the name parameter is equal to…
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.