AddSpaces Method


Zone Add Spaces Method

Add a set of existing spaces to Zone element.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool AddSpaces(
	SpaceSet spaces
)

Parameters

spaces SpaceSet
The spaces which want to add to zone element.

Return Value

Boolean
If successful the current zone element will add a set of input spaces, otherwise .
Exceptions
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
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →