SetPartCustomDataInteger Method
Set the custom data integer value for the specified custom data.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:  2018

Syntax

C#
public void SetPartCustomDataInteger(
	int customId,
	int value
)
Visual Basic
Public Sub SetPartCustomDataInteger ( _
	customId As Integer, _
	value As Integer _
)
Visual C++
public:
void SetPartCustomDataInteger(
	int customId, 
	int value
)

Parameters

customId
Type: System..::..Int32
The identifier of the custom data field to set.
value
Type: System..::..Int32
The integer value of the custom data. If the data is not an integer type the value will be parsed according to the fabrication confifuration rules.

Exceptions

ExceptionCondition
Autodesk.Revit.Exceptions..::..ArgumentException The custom data does not exist on the part.

See Also