NewRoom Method (Phase)


Creates a new unplaced room and with an assigned phase.

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

Syntax

C#
public Room NewRoom(
	Phase phase
)
Visual Basic
Public Function NewRoom ( _
	phase As Phase _
) As Room
Visual C++
public:
Room^ NewRoom(
	Phase^ phase
)

Parameters

phase
Type: Autodesk.Revit.DBPhase
The phase in which the room is to exist.

Return Value

If successful the new room , otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentExceptionThrown 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 →