Revit 2025 API
Duct |
Stores the default entity in the data.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetDefaultEntity( Entity defaultEntity )
Public Sub SetDefaultEntity ( defaultEntity As Entity )
public: void SetDefaultEntity( Entity^ defaultEntity )
member SetDefaultEntity : defaultEntity : Entity -> unit
Parameters
- defaultEntity Entity
- The Entity to be stored.

Exception | Condition |
---|---|
ArgumentException | Writing of Entities of this Schema is not allowed to the current add-in. |
ArgumentNullException | A non-optional argument was null |
See Also