From the course: Revit: Creating C# Plugins

Unlock the full course today

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

Get parameter

Get parameter

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

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…

Contents