NewSpaces2 Method (Phase, Int32)


Document New Spaces 2(Phase, Int 32) Method

Creates a set of new unplaced spaces on a given phase.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ICollection<ElementId> NewSpaces2(
	Phase phase,
	int count
)

Parameters

phase Phase
The phase in which the spaces are to exist.
count Int32

Return Value

ICollection ElementId
If successful, a set of ElementIds of new unplaced spaces are be returned, otherwise .
Exceptions
Exception Condition
ArgumentException Thrown if the phase does not exist in the given document.
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 →