GetPartCustomDataName Method


Gets the custom data name from its identifier.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2017 Subscription Update

Syntax

C#
public string GetPartCustomDataName(
	int customDataId
)
Visual Basic
Public Function GetPartCustomDataName ( _
	customDataId As Integer _
) As String
Visual C++
public:
String^ GetPartCustomDataName(
	int customDataId
)

Parameters

customDataId
Type: System Int32
The custom data identifier.

Return Value

The custom data name.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The custom data does not exist.

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 →