Share

GenericZone.AddSpaces Method

Adds spaces to the zone.


Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

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

ExceptionCondition
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

Reference

Was this information helpful?