GetLabelFor Method (BuiltInParameter)


Gets the user-visible name for a BuiltInParameter.

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

Syntax

C#
public static string GetLabelFor(
	BuiltInParameter builtInParam
)
Visual Basic
Public Shared Function GetLabelFor ( _
	builtInParam As BuiltInParameter _
) As String
Visual C++
public:
static String^ GetLabelFor(
	BuiltInParameter builtInParam
)

Parameters

builtInParam
Type: Autodesk.Revit.DBBuiltInParameter
The BuiltInParameter to get the user-visible name.

Remarks

The name is obtained in the current Revit language.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when the BuiltInParameter cannot be found.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →