Element.Parameter
Description:
Retrieves a parameter from the element given a parameter id.
Retrieves a parameter from the element given a parameter id.
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 id to access the parameter. Autodesk Revit has a large number of built in parameters that are available via an enumerated type.
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 id to access the parameter. Autodesk Revit has a large number of built in parameters that are available via an enumerated type.
Overloads (3):
public Parameter this[
BuiltInParameter parameterId
] { get; }
-
parameterIdThe built in parameter id of the parameter to be retrieved.
public Parameter FindWithBuiltinParameterID(Wall wall)
{
//Use the WALL_BASE_OFFSET paramametId
// to get the base offset parameter of the wall.
BuiltInParameter paraIndex = BuiltInParameter.WALL_BASE_OFFSET;
Parameter parameter = wall.get_Parameter(paraIndex);
return parameter;
}