Revit 2025.3 API
ZoneAdd |
Add a set of existing spaces to Zone element.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool AddSpaces( SpaceSet spaces )
Public Function AddSpaces ( spaces As SpaceSet ) As Boolean
public: bool AddSpaces( SpaceSet^ spaces )
member AddSpaces : spaces : SpaceSet -> bool
Parameters
- spaces SpaceSet
- The spaces which want to add to zone element.
Return Value
BooleanIf successful the current zone element will add a set of input spaces, otherwise .
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the specified parameter Value is . |
| InvalidOperationException | Thrown when the input spaces cannot be added to current zone element. |
See Also