Element.GetParameter
Method
Description:
Retrieves a parameter from the element given identifier.
Retrieves a parameter from the element given identifier.
Remarks:
Parameters are a generic form of data storage within elements. The parameters are visible through the Autodesk Revit user interface in the Element Properties dialog. This method uses a built in parameter identifier to access the parameter. Autodesk Revit has a large number of built in parameters that are available via static properties.
Parameters are a generic form of data storage within elements. The parameters are visible through the Autodesk Revit user interface in the Element Properties dialog. This method uses a built in parameter identifier to access the parameter. Autodesk Revit has a large number of built in parameters that are available via static properties.
Parameters
| Parameter | Type | Description |
|---|---|---|
| parameterTypeId | ForgeTypeId | Identifier of the built-in parameter. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | parameterTypeId does not identify a built-in parameter. See Parameter.IsBuiltInParameter(ForgeTypeId) and Parameter.GetParameterTypeId(BuiltInParameter). |
| ArgumentNullException | A non-optional argument was NULL |