Revit 2025.3 API
Fabrication |
Get custom data integer value for the specified custom data.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public int GetPartCustomDataInteger( int customId )
Public Function GetPartCustomDataInteger ( customId As Integer ) As Integer
public: int GetPartCustomDataInteger( int customId )
member GetPartCustomDataInteger : customId : int -> int
Parameters
- customId Int32
- The identifier of the custom data field to get.
Return Value
Int32Returns the integer of the custom data. If the data is not a number it will return 0.

Exception | Condition |
---|---|
ArgumentException | The custom data does not exist on the part. |
See Also