Adds spaces to the zone.
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
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. |
