AddSpaces Method


Generic Zone Add Spaces Method

Adds spaces to the zone.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void AddSpaces(
	ISet<ElementId> spaceIds
)

Parameters

spaceIds ISet ElementId
The spaces to be added to the zone. The spaces that are already in the zone will be ignored.
Exceptions
Exception Condition
ArgumentException The ElementIdSet spaceIds must be all MEP Spaces, and associated with the same level as the zone element.
ArgumentNullException A non-optional argument was null
InvalidOperationException This generic zone must be space-based.
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 →