GetAssociatedFamilyParameter Method


Gets the associated family parameter of an element parameter.

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

Syntax

C#
public FamilyParameter GetAssociatedFamilyParameter(
	Parameter elementParameter
)
Visual Basic
Public Function GetAssociatedFamilyParameter ( _
	elementParameter As Parameter _
) As FamilyParameter
Visual C++
public:
FamilyParameter^ GetAssociatedFamilyParameter(
	Parameter^ elementParameter
)

Parameters

elementParameter
Type: Autodesk.Revit.DBParameter
The parameter of an element in family.

Return Value

The associated family parameter if there is an association between them, returns a null reference (Nothing in Visual Basic) if not.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when the input argument-"elementParameter"-is a null reference (Nothing in Visual Basic).

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 →