From the course: Dynamo for Revit: Python Scripting
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Getting Revit parameters
From the course: Dynamo for Revit: Python Scripting
Getting Revit parameters
- Revit is made up of many parameters that drive element properties, such as lengths, widths, or material. We can access, add, and edit these parameters through the Revit API, so let's have a look at how we can get parameters from an element, but first what actually are parameters? Parameters come in the form of parameter objects, each object can be retrieved and set from an element using the API, as we can with the user interface. Each parameter object has a definition object associated with it, which describes the parameter name and the type of parameter it is. So for instance, say a door had a parameter named head height, the definition will store its name, head height, and the type of unit it contains, length in this example. Each parameter also has a value, which is either an integer, double string, elementID, or none, meaning nothing. These values are what we actually see in the interface, so a wall might have a height value of three meters, the three in this instance being the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Collecting elements3m 22s
-
(Locked)
Creating a collector7m 14s
-
(Locked)
Getting Revit parameters5m 51s
-
(Locked)
Setting Revit parameters6m 24s
-
Creating line-driven elements5m 34s
-
(Locked)
Element locations3m 25s
-
(Locked)
Adjusting elements5m 13s
-
(Locked)
Creating a view4m 6s
-
(Locked)
View bounding boxes7m 25s
-
(Locked)
Revit API and IronPython types7m 18s
-
(Locked)
-