Creates a new unplaced room and with an assigned phase.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public Room NewRoom( Phase phase )
Parameters
- phase Phase
- The phase in which the room is to exist.
Return Value
RoomIf successful the new room , otherwise nullptr.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the phase does not exist in the given document. |