Before you start
You have a session from Start a building.Add a straight wall
This garden wall goes from[0, 7] to [6, 7]. It is 6 metres long and 0.2 metres thick.
Add a closed room
A wall can have more than two points. Setclosed: true and Floorkit adds the last segment back to the first point. This room is 6 by 4 metres. The other guides add a door, a window, a floor and a roof to it.
Rules
- Points are
[x, z]in metres, seen from above. - Do not repeat the first point to close a wall. Use
closed: true. - The wall height is the storey height. Set
heightto change it. - The points are on the centre line of the wall. Set
locationLineto put them on a face (see below). - The
idmust be unique in the model. - Walls on the same storey join where they meet: at corners, at T-junctions and at crossings.
Put the points on a face: the location line
By default the points are on the centre line, and the wall is as thick on each side. SetlocationLine: 'left' or 'right' to put the points on a face instead. Left and right are seen from the first point, looking along the wall. locationOffset moves the whole wall that many metres off the points, to the side of the wall body, so the face is that far from them. A new thickness keeps the location line where it is, so the face on the points stays put.
Choose how the ends join
Walls join where they meet. Each end has ajoins entry: allow: false keeps that end free, and type picks the corner: miter (the default), butt or squareOff.
Mark a party wall
A party wall stands on the boundary with the neighbour: its centre line is the boundary. SetpartyWall with the ownSide that belongs to this building, left or right, seen from the first point looking along the wall. This wall runs from the back to the front, and the building is on its right.
- A plan draws the own half only. The poché stops at the centre line, the neighbour’s half and its face are not drawn, and the centre line is a dashed boundary line.
- A party wall with
topFollowsRooffollows the roof across its whole thickness. The neighbour’s half is under the neighbour’s roof: the mirror of this building’s roof about the boundary. - Elevations and sections draw nothing beyond the boundary: the neighbour’s half of the wall, and the part of any other element on that side, are cut off at the boundary. An elevation that looks along the boundary draws it as a dashed vertical line.
- Two party walls whose boundaries meet at a corner sharper than a right angle, on the neighbour’s side, are left out of the plan with a warning.
- A curtain wall cannot be a party wall (
party-wall-curtain), and neither can a wall with an arc segment (party-wall-on-arc): its centre line is no straight boundary.
A wall on sloping ground
On sloping ground the ground floor stands above the ground on the low side, and an elevation shows a gap under the wall. SetbaseToGround: true on the outer walls of the ground floor: each wall then goes on below its storey as a plinth, down to the lowest point of the site ground (site.groundPoints) under the wall.
- The base has the plan shape of the wall after its joins, and the wall’s material and phase. Openings do not cut it. The storey slab keeps its thickness.
- Elevations draw the base as wall down to the ground line. Sections cut it as wall; a section with
belowGround: 'omit'leaves out the part under the ground. Plans do not draw it. - Where the ground under the wall is at or above the wall bottom, the wall has no base.
- A site edit builds every base again. Moving a wall builds only the bases of the walls it changes.
- A value that is not
trueorfalseis refused withbad-base-to-ground.
plinth (Revit: a stacked wall, or a split region of the outer layer):
- The band runs from the wall’s bottom up to
heightabove it, level along its top. The bottom is the lowest ground under the wall when its base runs to the ground, else the wall’s base; a site edit moves the band with the ground. - On a wall with a type it is the type’s first layer; on a wall without one it is the whole thickness. Openings cut it.
- Elevations draw the line along its top and its faces in its material; sections cut it in its material’s hatch; a plan cut below its top draws the first layer in it; the 3D body takes its colour.
heightmust be above 0 andmateriala name (aWallMaterialor a key ofmaterials), or the wall is refused withbad-plinth. A curtain wall has none:plinth-curtain.
Add a curved wall
A segment can be an arc.arcs has one entry for each segment: { through: [x, z] } makes the segment the arc through its two ends and that point, and null keeps it straight. This wall bends out by 1 m between its ends.
- The
offsetof a door or window on the wall is the distance along the arc. The wall cuts the opening along the curve; the leaf stays straight. - A
throughpoint on the line between the two ends is refused witharc-collinearatarcs[i].through. - A door, window or rectangular void in a curved wall has parallel jambs, square to the opening, and a straight frame centred between them.
- The plan, sections and elevations draw the wall with true curves. Sections and elevations do not draw a curved wall with a round void yet: such a view is refused with
unsupported-curved-walland the id of the wall. Setsettings.curvedWalls: 'leave-out'on the view to draw it without that wall and its doors and windows, with a warning that names the wall. - In the plan editor, the dot at the middle of an arc moves its bulge. The editor saves one
move-wall-arc. split-wallandmerge-wallswork along the arc. A split inside an arc gives two arcs of the same circle.
Draw a curved wall with the wall tool
The wall tool of the plan editor and of the 3D editor has an arc mode. Start the wall tool witheditor.startWallDrawing(wall, { mode: 'arc' }) (in 3D, editor.startWallDrawing(storeyId, wall, { mode: 'arc' })). Click the start. Then, for each segment, click a point the arc passes through, then its end. A typed length is the chord. setWallDrawingMode('line' | 'arc') switches mid-run. Enter finishes, Escape cancels. Floorkit saves one create-wall whose arcs carry each curved segment’s through point.
This page switches the mode with the a key:
Bend and straighten a wall
bend-wall makes one segment of a wall that exists an arc through a point, and through: null makes it straight again. The ends stay where they are. One command is one undo step.
- A
throughpoint on the line between the two ends is refused witharc-collinearatarcs[i].through. - A bend makes the segment longer. A door or window that would not fit on the shorter segment is refused with
bend-opening-overrun, at the opening.
Round a corner
fillet-walls rounds the corner where an end of one wall meets an end of another. Both walls are shortened to the tangent points, which are radius / tan(angle / 2) from the corner, and a new wall of one arc joins them. The new wall has the settings of the first wall and the id you give. It is one undo step.
This page uses two walls that meet at [6, 0]: long-wall from [0, 0], and short-wall up to [6, 4].
propertySets.Parti.filletRadius. Read it from the model, or ask a ProjectManager for the radius of a wall in the live scene with filletRadius(liveId).
invalid-target, and the issues of the error name the cause:
fillet-not-joined: the two ends do not meet within 1 mm, or a wall is a closed run.fillet-not-two-walls: a third wall also meets the corner.fillet-arc-wall: the segment of a wall at the corner is an arc.fillet-settings-differ: the walls differ in a setting, as inmerge-walls.fillet-not-a-corner: the two walls run straight on.fillet-too-big: a wall or an opening is in the way. The message gives the largest radius.
Round a corner inside one run
A corner inside one wall has no two walls to fillet. Split the wall at the corner withsplit-wall, then fillet the two parts. station is the distance along the centre line from the first point.
Remove a wall
What a delete does to openings
A delete removes the whole wall run, all its segments.- Its doors and windows stay in the model as loose openings, where they were drawn. Put one back into a wall with
rehost-free-opening. Withopenings: 'delete'they are deleted with the wall instead, as a host wall’s are in Revit and Archicad. The plan and 3D editors’ Delete sendsopenings: 'delete': a person who deletes a wall deletes what is in it. A door that a person drags off its wall still stands free. - Its voids are deleted with it. The step gives one
void-deleted-with-wallwarning for each void, with the id, the size and the station of the void. Read the warnings right after the step; the next step does not repeat them. - Undo brings the wall back with all its openings. Redo deletes them again and gives the same warnings.
warnings.
Measure the footprint
buildingFootprint measures a building to the outer face of its walls. It takes the outer ring of wall centre lines of one storey, moves each edge out to the outer face of its wall (its thickness, location line and offset), and extends the faces to meet at each corner. Slab roles play no part.
- The lowest storey whose walls close a ring is measured.
storeyIdmeasures another storey. - A wall with a free end, a wall inside the ring and a demolished wall do not count.
state: 'existing'measures the building before the works: its existing and demolished walls. - A roof or a slab that covers open ground, such as a carport roof, counts only when you name it:
coveredBy: ['carport-roof']. Its outline and the wall faces count together, each place once. - When the walls close no ring, the result is
measured: falsewith areason, never an area of 0. An unknown building, storey orcoveredByid throws. footprint.outlineandfootprint.outlineArcsare the outer face, as a ring in[x, z]metres.
Check the zoning rules
evaluateZoning reads masses only. evaluateBuildingZoning also reads buildings drawn with walls: their footprint (as above), their height (the highest wall top or flat roof top above the site elevation) and their floor area.
- Each figure in
report.metricsis{ measured: true, value }or{ measured: false, reason }, never 0 for a figure that is unknown. - A rule that needs a figure that is not measured is in
notEvaluated, andstatusis'not-evaluated', not'compliant'. - A pitched roof’s top needs the built model. Give it in
buildingTops(the world Y of each building’s highest point), or the height is not measured. - The lot-line, setback-plane, no-build-zone and spacing rules see each building as its footprint raised from the site elevation to its top.
- Chimneys, soil stacks and railings do not count in the height. A building with a
massis left out: pass its mass instead.
Next
Round a wall corner
Fillet a corner, bend a wall and straighten it again.
Add a door
Cut a door into the room.
Move and reshape
Move a wall point after you draw the wall.