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

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…

Contents