Skip to main content
A room is an outline with a name. Floorkit calculates its area and its perimeter. Use rooms for labels on a plan and for area lists.

Before you start

You have a session from Start a building.

Write the room

The outline follows the inner faces of the walls. For walls 0.2 metres thick on a 6 by 4 metre outline, the room starts 0.1 metres inside.

Add it to the storey

A room is an entry in the spaces list of its storey.
The add-element command adds the room to the list, and the session builds it. You keep the session and its undo history. The command rejects an id that the list has.

Read the area

After the build, get the room from the session and read its values.

A room with a curved side

A room inside a curved wall has a curved side too. Give arcs.outerRing one entry per side of the outline: side i runs from point i to the next point. An entry { through: [x, z] } makes that side a circular arc through that point. null or no entry is a straight side.
  • area and perimeter are exact for the arc: here 12 + 9 × (1 − π/4) m².
  • The plan draws the fill with the arc, and the label is inside the arc.
  • A room schedule prints the same area.
  • The IFC export writes the room as an IfcSpace with a curved body.
  • A room separation line takes arcs in the same way, one entry per segment, and the plan draws it as an arc.

The label on the plan

The plan label of a room is its name over number · area, such as Living room over 01 · 22.0 m².
  • A room with no number prints no number: the second line is the area only. Floorkit gives no default number.
  • The label is at the centroid when the centroid is inside the room and clear of the walls. Else it is at the inside point farthest from the walls, as in a U-shaped room.
  • The label keeps off the blocks in the room, such as a bathtub, where the room has space.
  • A name too wide for the room breaks onto two lines at the space nearest its middle, when the room is deep enough, before the label gets smaller.
  • A label keeps off walls and other text. Fittings, door swings, stair lines and dashed lines are soft: the label takes the place in its room that meets the fewest of them. With no place for the full label, it breaks its name over the area line, then drops the area line, then prints the name alone at its smallest size, broken to the width of the room.
  • Only a name that fits nowhere in its room is drawn at the nearest clear place, outside every room when there is one, else in another room, with a thin leader line that ends in a dot in the room. The leader crosses no text and no wall but the room’s own. On a plan with phaseFilter proposed or complete, a demolished wall is not in the way. A label you place with roomLabelPlaces keeps its place.
  • A plan view with roomLabel sets how the area and the ceiling height read, such as (CH - 2530) and (13m²), and can leave the area off every room or off the rooms whose usage it lists in hideForUsages, in any case. See Create a plan view.
  • A plan view with labelMm prints the name that many paper mm high. When the room is too small at the view scale, the plan prints the name and drops the area line.
  • A plan view with roomCeilingHeight: true prints the ceiling height under the name, such as CH 2500. It is the room’s height when set. A room with no height prints the storey height less its baseOffset, unless a ceiling slab or a roof of its own storey, in the phase the plan shows, is lower over its label and above its floor: under a ceiling, a flat roof or the flat top of a pitched roof it prints the height to the underside; where a pitched roof slopes over the label it prints no ceiling height and the drawing warns with the room’s id. Arcs and rounded corners of the outline count as drawn.

Place the label by hand

To print the label of a room at a place you choose, such as above the pan of a WC, give the plan view roomLabelPlaces, keyed by the room’s id. The place is in plan metres: x along X and y along Z.
The label prints there on the screen and on every sheet that shows the view, at every scale. Floorkit does not move it off the lines; door and window tags move clear of it. See Create a plan view. To turn a placed label, such as along a narrow hall, add rotationDeg: degrees counter-clockwise as the plan prints, about at. 90 reads up the page. Without it the label is level. The label fits its room along its turned lines, a leader leaves from its turned box, and moving the label keeps its turn.

Change a room in an inspector

An inspector changes a saved room with manager.replaceFields(liveId, patch), as in Add a 3D editor. Each call is one step that undo reverts. labelName, showLabel and fontSize are live only. A change to them throws, and so does any other key. The session checks the values: a height of 0 is refused as bad-height.

Rules

  • You give the outline. Floorkit does not find rooms from walls.
  • Rooms do not follow walls yet. When you move a wall, the room outline stays where it is. Change the room outline yourself with replace-element.
  • area is in square metres. Holes in the outline are subtracted.
  • show3D: true shows the room as a translucent volume.
  • usage says what the room is for, such as 'bedroom' or 'kitchen'. It is free text of 1 to 64 characters. The plan does not print it, but a plan view can leave the area off rooms by their usage.
  • Two rooms of one storey that overlap give a room-overlap warning in session.currentBuild.warnings. The warning names both rooms and the overlap in m². Rooms that only share a wall line do not warn.

Mark a room boundary without a wall

A room separation line marks where one room ends and the next starts where there is no wall, such as between a kitchen and a dining area. It is an entry in the roomSeparators list of its storey: an open line of 2 points or more in storey X and Z, in metres.
  • The plan draws it with the thin room-boundary pen, under the walls. The 3D view, sections and IFC files do not show it.
  • In the plan editor, a press selects it. A drag of a point grip moves that point. The Delete key removes it. Each is one undo step.
  • Fewer than 2 points, or two equal points next to each other, give a bad-points error with the path of the point.
  • A separation line does not change a room yet. You still give the room outline.

Next

Add a storey

Put a second floor on the building.

Space API

See each option of a space.
Last modified on November 28, 2026