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 Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →