GetParameter Method


Obtains the family parameter with the given built-in parameter identifier.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2022

Syntax

C#
public FamilyParameter GetParameter(
	ForgeTypeId parameterTypeId
)
Visual Basic
Public Function GetParameter ( _
	parameterTypeId As ForgeTypeId _
) As FamilyParameter
Visual C++
public:
FamilyParameter^ GetParameter(
	ForgeTypeId^ parameterTypeId
)

Parameters

parameterTypeId
Type: Autodesk.Revit.DBForgeTypeId
Identifier of the built-in parameter.

Remarks

Returns a null reference (Nothing in Visual Basic) if the parameter is not found.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException parameterTypeId does not identify a built-in parameter. See Parameter.IsBuiltInParameter(ForgeTypeId) and Parameter.GetParameterTypeId(BuiltInParameter).
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was NULL

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →