Skip to main content
These functions change the labels of a plan drawing that you made yourself. For a saved plan view, set openingTags: 'auto' on the view instead: drawProjectView and each sheet that shows the view then draw the door and window tags.

Import

Example

Notes

  • tagOpenings puts bare tag text at the centre of each opening. It does not draw a frame.
  • A saved plan view with openingTags: 'auto' draws a circle for each door and a hexagon for each window, outside the swing and off the glass. The text is labelMm paper mm high, or 2.5 mm.
  • openingTagShape: { door, window } on the view sets the frame of the tags: 'circle', 'hexagon' or 'none' for the text only. A door has a circle and a window a hexagon when it is absent.
  • Both number the doors D01, D02 and the windows W01, W02. A labelName that is a tag, such as D-12, prints as written. A description, such as Bedroom door, prints the number.
  • With openingTagText: { propertySet, property } on the view, a door or window tag shows that property of the opening, such as { propertySet: 'Pset_DoorCommon', property: 'FireRating' } for FD30. An opening without it keeps its number, and one warning of the drawing names those openings.
  • With rooflightTags: 'auto' on a plan view, each rooflight that the plan draws gets a tag with no frame, outside a long side of its outline. The tag shows the property that openingTagText names, such as ROOF LIGHT 2m x 1m, else the labelName of the rooflight. A rooflight with neither gets no tag, and one warning of the drawing names the rooflights without the property. rooflightTags is a field of a floor plan (kind: 'plan') only; a roof plan draws no rooflight tags. tagPlaces moves or hides a rooflight tag by the rooflight’s id.
  • With roomCeilingHeight: true on a plan view, each room label prints the ceiling height, such as CH 2500, between the name and the area. It is the room’s height when set, else the storey height less the room’s baseOffset. For a room with no height, a ceiling slab or a roof of the same storey, in the phase the plan shows, that is lower over the label point and above the floor decides: a ceiling, a flat roof or the flat top of a pitched roof gives the height to its underside, and a pitched roof that slopes over the point gives no ceiling height and a warning that names the room. It is a detail line: it drops with the area when the room has no space for it.
  • A room label stays inside its room, clear of walls, door swings, fixtures and demolished work. It leaves its room on a leader only when its name and area fit nowhere inside; the plan then warns Room label "<name>" of <id> finds no place in its room: drawn outside on a leader. When the area fits nowhere clear, the label prints its name only and the plan warns Room label "<name>" of <id> finds no clear place for its area: the area is not drawn.
  • roomLabel on a plan view sets how the label lines read. ceilingHeight.template writes the ceiling height line with {mm} for the height in mm; the default is CH {mm}. area.template writes the area with {area} for the number; the default is {area} m². area.decimals sets the decimal places of the number; the default is 1. area.trimZeros: true drops trailing zeros, so 13.0 prints 13. area.show: false prints no area, and area.hideForUsages lists the room usage values that print no area, such as ['wc', 'store'], in any case: 'WC' matches 'wc'. area.outranksCeilingHeight: true lets a crowded label keep its area inside the room: a label with no clear place inside with all its lines then tries an inside place without the ceiling height line, before a place outside the room on a short leader with all its lines. By default the label tries the outside places next, and drops both lines only when no outside place is clear either. For example, a 2 m by 0.8 m room between other rooms prints Utility and 1.6 m² with the field, and Utility alone without it. The field acts in the plan label pass only; the pass that re-places labels on a sheet does not read it. roomLabel.nameBeforeLeader: true lets a crowded label stay in its room: a label with no clear place inside with its lines prints its name alone inside, at its size and then at the smallest size, before a place outside on a short leader. By default the short leader comes first. It also acts in the plan label pass only. A room with a number and no area prints its number alone. For example, roomLabel: { ceilingHeight: { template: '(CH - {mm})' }, area: { template: '({area}m²)', trimZeros: true } } prints (CH - 2530), then (8.6m²) for a room of 8.62 m² and (13m²) for one of 13.0 m². The templates, decimals and trimZeros are metric: an imperial label prints as before. A template without its placeholder, a decimals that is not a whole number from 0 to 100 and an unknown field are refused when the project opens.
  • A window above the cut is not drawn, but the plan of its storey tags it at its place on its wall, so its number is not lost. A plan does not tag a window in a wall of a lower storey that rises through its cut.
  • A door or window whose top is below the cut draws as seen, and is tagged, when its wall has no material at the cut at the middle of the opening, such as a door in a low wall. The plan looks at the middle only: under a lintel or a roof slope that reaches the cut there, the opening is not drawn.
  • A tag frame is sized on the paper to hold its text, so a tag looks the same at 1:50, 1:100 and 1:200.
  • A wall, door or window tag keeps clear of room labels, notes and other tags. If its place is not clear, the tag moves along its wall or to the other side. If no place is clear, the tag stays at its default place and the drawing’s warnings name it.
  • Clear space is checked at 1:100 with the view’s labelMm. On a sheet viewport at a smaller scale, such as 1:200, or with a larger labelMm, tags can overlap again.
  • These labels belong to the drawing. A live LineDimension or datum in the 3D scene does not draw on it.

filterRoomLabels

Return the primitives with the room label lines this mode does not draw removed.

tagOpenings

Append a tag per door and per window, at the centre of what that opening drew.

declutterText

Return the primitives with colliding labels removed.

ROOM_LABEL_NAME

The style.subId values Space.toDrawing tags its two label lines with.

ROOM_LABEL_DETAIL

Types

RoomLabelMode

full = name + number · area; name = name only; none = neither.

OpeningTagMode

Whether a plan carries door and window tags.
Last modified on November 16, 2026