Before you start
You have a building model with a storeyground that has walls. See Draw a wall.
Save the view in a project
A project holds the building model, the views and the sheets. This project has one plan view and no sheets.Get the linework
drawProjectView returns the drawing as data: lines, arcs, regions and text in metres. Use it to show the plan in your own canvas. Give it your session: the drawing then reads the model and the live build of the session. It does not build the model again.
Show the neighbours and place a room label
A storey plan draws the neighbours ofsite.contextBuildings only with showContext: true. roomLabelPlaces puts the label of a room at a place you give, in plan metres: x along X and y along Z. This plan draws the neighbour outlines and prints the label of room wc at x 2.4 m, z 1.1 m.
- The neighbours draw in the
CONTEXT_BUILDINGpen, as on a site plan. They are not walls of the storey. See Add the neighbours. - A placed label prints at its place on the screen and on every sheet, at every scale. The sheet does not move it off the lines, and a door or window tag moves clear of it. A place outside its room draws a leader line to the room.
- The places belong to the view. Another plan of the same storey, such as the existing plan, needs its own places. A place that names no room of the storey is ignored, and the drawing’s
warningsname it.
Rules
cutHeightAboveStoreyis in metres above the storey elevation. A cut at 1.2 metres goes through doors and most windows.- The view holds no lines. It is drawn from the model, so it is always up to date.
linesAboveCutsets, per element type, how the parts above the cut draw:'dashed'or'hidden'. The types areROOF,SLAB,BEAM,STAIR,RAILING,RAMP,WINDOW,COLUMN,WALL,CEILINGandROOFLIGHT. By default roofs and slabs are hidden and every other type is dashed, so a rooflight above the cut draws dashed while its roof is hidden;ROOFLIGHT: 'hidden'leaves it out. A ceiling plate with noCEILINGentry draws its outline as before;CEILING: 'hidden'leaves out a ceiling above the cut, andCEILING: 'dashed'draws it with the thin dashed pen of a slab above the cut. With either value, a ceiling that the cut passes through or that is below the cut takes the solid pen of a slab in the same place instead of its dash-dot outline.hideStairAboveCut: trueis the same asSTAIR,RAILINGandRAMPhidden; alinesAboveCutentry that says otherwise is refused withabove-cut-conflict.- With
linesAboveCut: { SLAB: 'dashed', ROOF: 'dashed' }the plan draws the edges of the slabs and roofs of the next storey up as thin dashed lines, such as a balcony above. A slab draws its saved profile, so an opening cut by a void element does not show. The lines cannot be selected, and a click passes through them. stairSymbolsets the parts of each stair symbol: the flight above the cut (aboveCut:'dashed','continuous'or'hidden'), the break line ('single','double'or'none'), the walking line, start circle and arrow (falseleaves each out) and the words ({ up, down }or'none'). A setaboveCutwins overhideStairAboveCutandlinesAboveCut.STAIRfor stairs only: withhideStairAboveCut, railings and ramps above the cut stay hidden. A bad value is refused withinvalid-stair-symbol. See Add a stair.railingLines: 'double'draws each railing as the two faces of its top rail. The default is'single', one line on the railing path. A bad value is refused withinvalid-railing-lines.sectionHeads: 'fit-text'grows the bubble of each section head on the plan until its drawing number and sheet number fit inside it, never below 10 mm on the paper. The default is'fixed', a 10 mm bubble whatever the text. A roof plan takes the same field. A bad value is refused withinvalid-section-heads.- A wall whose top is below the cut, such as a 1 metre knee wall in a loft, draws as a thin outline.
lowWallsAsCut: { minTop: 0.9 }draws each wall whose top is between 0.9 metres above the storey and the cut as cut at 0.9 metres: with the poché and outline of a full-height wall. A door or window in it whose head is above 0.9 metres draws cut, as in a full-height wall.minTopis in metres above the storey, at least 0 and belowcutHeightAboveStorey; a bad value is refused withinvalid-low-walls-as-cut. WithoutlowWallsAsCut, the plan draws as before. - A wall whose top follows a roof, such as a loft partition that runs under the slope to a knee wall, draws cut only where its top reaches the cut, and as seen lines where the roof brings it lower.
lowWallsAsCut: { minTop: 0.9, trimmedWalls: true }draws such a wall of the storey as cut over its full length when its top reaches 0.9 metres above the storey somewhere: it is cut at 0.9 metres, its part whose top is lower draws with the same poché and outline, and a door or window in it draws by 0.9 metres. A wall whose top never reachesminTop, and a wall of a storey below, draw as before; a layered or arc wall with such a top is refused.trimmedWallsistrueorfalse(the default). - A stair, railing or ramp line above the cut stops at the cut walls: it is not drawn over the wall poché.
- A roof on a floor plan draws its outline and the lines where its slopes meet, never its slope arrows or pitch text. A roof the cut passes through, such as the roof over a loft, and the part of a roof above the cut draw with the thin dashed pen of lines above the cut. Those draw on the roof plan.
roofsBelow(defaulttrue) draws the roofs of the storeys below that the cut does not pass above, such as the flat roof of a single-storey extension seen from the first floor. The part under a floor of this storey or under a higher roof is left out. A higher roof wholly above the cut hides only the part inside its profile: under its eaves a lower roof is drawn up to the wall. The lines cannot be selected.roofsBelow: falsedraws none.roofsBelowPattern: 'material'draws each roof below with the surface pattern of its roof material, as the roof plan does: tile courses on a tiled slope, for example. These roofs then draw before the other symbols of the plan, so a fill on them (paper styleROOF.parts.flat) lies under the stair. The default,'none', draws outlines and slope lines only; any other value is refused withinvalid-roofs-below-pattern.roofsBelowRidgeLines: { draw: 'band', bandMm: 1 }draws each ridge, hip and valley of those roofs as two linesbandMmpaper mm apart (default 1), asridgeLinesdoes on a roof plan. Absent, one line.roofsBelowAcrossCut(default'seen') decides a roof below that the cut passes through, such as the gable roof of a single-storey wing whose ridge is higher than the cut of the first floor.'seen'draws all of it as seen from above, outline, ridges, hips and valleys, withroofsBelowPattern; a wall, column, beam, slab or opening of a storey below that stands wholly under it (its plan box inside the eave outline and its top no higher than the roof) is hidden, not cut. A roof below that is the roof over this storey (this storey and those above have no roof, as in an attic, or the centre of a room of this storey lies under it and under none of their roofs) still draws by the cut.'cut'draws such a roof by the cut plane and cuts those elements. Any other value is refused withinvalid-roofs-below-across-cut.- A chimney breast cut by the plan draws as its own closed outline by default (
chimneyBreasts: 'separate').chimneyBreasts: 'with-wall'draws a cut chimney that touches a cut wall of the same phase as part of that wall: no line on the face they share, and the breast draws with the pen and poché of that wall, also under a paper style, so the wall line steps round the breast. On a proposed plan a demolished breast against an existing wall keeps its own outline. A chimney that touches no cut wall draws as before. Another value is refused withinvalid-chimney-breasts. - A wall, column, beam, slab, door or window of a lower storey that the cut passes through, such as a double-height wall or column, is drawn cut, as on its own storey, and a column clips the walls of this storey. A room is not. A stair or a railing from another storey draws only its own part on this plan.
openingSymbolschanges how doors and windows draw.foldingDoor: 'closed'draws the panels of a folding door in line across the opening.windowFrame: 'reveal'draws the frame and the glass of a window in a band at the wall face of its sill and leaves the rest of the reveal open.windowSill: 'nosed'draws a sill with a curved front, andwindowSill: 'none'draws no sill. A bay window keeps its own symbol;bayGlazing: 'line'draws the frame band of each bay light with one glass line at its middle, andbayGlazing: 'none'draws the band without glass. WithoutopeningSymbols, doors and windows draw as before. For the tags of doors, windows and rooflights, see Room and opening labels.- A column on a grid crossing has its grid reference, such as
B-3, beside it. When a sheet has no clear place for it, the tag is left off and the drawing warns. - A cut below the storey floor or above the storey height draws with a warning. A cut at 0 is refused with the code
cut-at-storey-floor. - A slab below the cut draws only the edges that show, with the 0.25 mm pen of lines below the cut. Two slabs that meet at the same height draw no line between them, and an edge under a cut wall does not draw. See Add a floor slab.
roomLabelsets how the room labels read.ceilingHeight.templatewrites the ceiling height line ofroomCeilingHeightwith{mm}for the height, such as'(CH - {mm})'; the default isCH {mm}.area.templatewrites the area with{area}for the number, such as'({area}m²)'; the default is{area} m².area.decimals(default 1) sets the decimal places, andarea.trimZeros: trueprints13for13.0.area.show: falseprints no area on any room, andarea.hideForUsagesnames the room usages that print no area, such as['wc', 'store'], in any case.area.outranksCeilingHeight: truemakes a crowded label try an inside place without its ceiling height line before a place outside the room; it acts in the plan label pass only, not when a sheet re-places labels.nameBeforeLeader: truemakes such a label print its name alone inside the room before a place outside on a short leader, in the plan label pass only. WithoutroomLabel, the labels read as before. See Room and opening labels.- A sheet does not print the outline of a room: it prints the room label only. The plan editor still draws the outline and selects the room by it. A boundary with no wall draws with a room separation line. To print room outlines, for an area plan or a fire plan, give the sheet a paper style with
classes: { SPACECONTAINER: { parts: { boundary: { visible: true } } } }. - A point exactly on the cut counts as above it. A window head at the cut height is cut, so the plan shows the window and the gap in its wall. A sill at the cut height is above the cut, so the wall is drawn whole. The same rule applies to the top and the bottom of walls and slabs.
- When the cut of one wall or slab fails, the plan leaves out that element and names it in
warnings. The rest of the storey draws. visibleRangeis not drawn yet. The draw refuses it withunsupported-visible-range, andadd-project-itemandreplace-project-itemrefuse a plan view that has it.showMassing: truealso draws the outline of each part of the mass of every building on the site, on the sheet and in the plan editor. Under the masses it draws the parcel and the dashed setback line: the edge of what the setback check ofevaluateZoningleaves buildable under the site’s zoning rules. Both are drawn only, never selected. It is off by default. A file with this field does not open in Floorkit 1.1.0.- With
{ session }, the project gives only the views. The building model of the project must have the sameidas the model of the session. - Without a session,
drawProjectView(project, 'ground-plan')builds a temporary copy of the model of the project. Use this for a project file that has no open session. - To show the plan and let the user edit it, use the plan editor.
Next
Cut a section
Make a vertical cut through the building.
Compose a sheet
Put this plan on paper.