GetPartCustomDataText Method


Get custom data text for the specified custom data.

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 GetPartCustomDataText(
	int customId
)
Visual Basic
Public Function GetPartCustomDataText ( _
	customId As Integer _
) As String
Visual C++
public:
String^ GetPartCustomDataText(
	int customId
)

Parameters

customId
Type: System Int32
The identifier of the custom data field to get.

Return Value

Returns the text of the custom data. If the data is a number it will be formatted according to the fabrication configuration's rules.

Exceptions

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

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 →