From the course: Dynamo for Revit: Python Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Element locations

Element locations

From the course: Dynamo for Revit: Python Scripting

Start my 1-month free trial

Element locations

- [Instructor] In the Revit API there are several ways to adjust elements as we would in Revit. One simple way to move Revit elements is by getting and setting their location. So in this video let's have a look at element locations by moving the location of a point based family. I currently have the Revit and Dynamo exercise files open for this video. In Revit you'll notice that there is now some furniture on level one, including this couch. In the Dynamo workspace we have a node which has selected that couch and it has been input into a Python script. So let's go ahead and open up the Python script. As you can see we already have the libraries we need for the Revit API and the couch has been input and unwrapped and assigned to the couch variable. We also have the document and a filtered element collector has been created to filter the project of rooms. I've then created a variable named Office so that I could look through each of the rooms collected, look for the room with the name…

Contents