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.

Setting Revit parameters

Setting Revit parameters

From the course: Dynamo for Revit: Python Scripting

Start my 1-month free trial

Setting Revit parameters

- [Instructor] Once we have a parameter object we can set the value of the parameter based on the type of value that it is. In this video, let's have a look at retrieving a single parameter from an element, checking its value type, and then setting it. I currently have the Revit and Dynamo exercise files open for this video. This is where we left off from in the last video. In the Python script file, we were last looping through the list of parameters and retrieving the built in parameter names. In this exercise, let's get a single parameter from the door by accessing the parameter property of the element and changing the material from door to wood by accessing the door frame material built in parameter. We can see this at item four, output from the Python script node. To retrieve this parameter, let's start by creating a variable named doormat. We'll then assign to this the door material parameter by using the .parameter property on the door and then using the built in parameter as…

Contents