Revit 2026 API
Fabrication |
Add custom data type to the fabrication part. The new data gets the default value defined by the fabrication configuration.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool AddPartCustomData( int customId )
Public Function AddPartCustomData ( customId As Integer ) As Boolean
public: bool AddPartCustomData( int customId )
member AddPartCustomData : customId : int -> bool
Parameters
- customId Int32
- The identifier of the custom data field to add.
Return Value
BooleanReturns true if the type was not already present.
| Exception | Condition |
|---|---|
| ArgumentException | The custom data identifier does not exist. |
The custom id must be positive.
See Also