RemoveSpaces Method


Generic Zone Remove Spaces Method

Removes spaces from the zone.

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

Parameters

spaceIds ISet ElementId
The spaces to be removed from the zone. The spaces that are not in the zone will be ignored.
Exceptions
Exception Condition
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 →