Search code examples
revit-apirevit-2015

Place Room Automatically using Revit API


I want to use Place Room Automatically using revit api but currently not able to see any example for it


Solution

  • Look for the Document.NewRoom() method. (This is the Document Creation object, not the regular Document object). You have options for:

    • NewRoom(Phase) - create an unplaced room in a particular phase.
    • NewRoom(Level, UV) - create a room on a particular level at an X,Y point
    • NewRoom(Room, PlanCircuit) - create a new room or place an unplaced room into a "PlanCircuit", which is an identified space that can contain a room within the geometry.

    Rooms exist within a single phase, make sure you're aware of what phase it is created in.