From the course: Revit: Creating C# Plugins
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Get parameter
- [Instructor] When working in Revit, we can adjust different parameters of an element to change different characteristics. Using the Revit API, we can do the same thing, accessing and editing an element's parameters directly from our commands. In this video, let's have a look at getting parameters. First, though, let's have a look at what parameters actually are. Parameters come in the form of parameter objects. Each object can be retrieved and set from an element with the API, as we can with the user interface. Each parameter object has a definition property that returns a definition object describing the parameter name and type. 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, element ID, or none. These values are what we actually see in the interface. All objects that we work with in Revit…
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
-
-
-
-
Classifying elements5m 22s
-
Retrieving element information6m 39s
-
FilteredElementCollector3m 7s
-
Creating a collector7m 28s
-
Transactions2m 47s
-
Modifying elements5m 30s
-
Creating families7m 54s
-
Querying FilteredElementCollector5m 7s
-
Creating line-based elements6m 55s
-
Creating loop elements5m 59s
-
Get parameter6m 3s
-
Parameter values4m 45s
-
-
-
-
-