NewRooms2 Method (Level)


Document New Rooms 2(Level) Method

Creates new rooms in each plan circuit found in the given level in the last phase.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ICollection<ElementId> NewRooms2(
	Level level
)

Parameters

level Level
The level from which the circuits are found.

Return Value

ICollection ElementId
If successful, a set of ElementIds which contains the rooms created should be returned, otherwise .
Exceptions
Exception Condition
ArgumentOutOfRangeException If the view of the relevant level can not be retrieved.
InvalidOperationException If the phase is invalid, or regeneration fails at the end of the creation.
ArgumentException Thrown if the level 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 →