SetPartCustomDataText Method


Set the custom data real value for the specified custom data.

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

Syntax

C#
public void SetPartCustomDataText(
	int customId,
	string value
)
Visual Basic
Public Sub SetPartCustomDataText ( _
	customId As Integer, _
	value As String _
)
Visual C++
public:
void SetPartCustomDataText(
	int customId, 
	String^ value
)

Parameters

customId
Type: SystemInt32
The identifier of the custom data field to set.
value
Type: SystemString
The text value of the custom data. If the data is not a text type the value will be parsed according to the fabrication confifuration rules.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The custom data does not exist on the part.
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 →