AddSpaces Method


Add a set of existing spaces to Zone element.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public bool AddSpaces(
	SpaceSet spaces
)
Visual Basic
Public Function AddSpaces ( _
	spaces As SpaceSet _
) As Boolean
Visual C++
public:
bool AddSpaces(
	SpaceSet^ spaces
)

Parameters

spaces
Type: Autodesk.Revit.DB.MechanicalSpaceSet
The spaces which want to add to zone element.

Return Value

If successful the current zone element will add a set of input spaces, otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when the specified parameter Value is a null reference (Nothing in Visual Basic).
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when the input spaces cannot be added to current zone element.

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 →