Skip to main content
You change a wall with a command. Floorkit moves the wall, joins it again to the walls that it touches, and cuts its openings again.

Before you start

Your building has the room and the garden wall from Draw a wall.

Move one point of a wall

pointIndex is the position of the point in the points list of the wall. Index 2 is the third point, the corner at [6, 4].
The room is now larger at that corner, and the two walls that meet there have a new direction. A door at offset: 2 is still 2 metres from the first point. See Where the doors and windows go for the doors of the segments that change.

Take one end off a corner

move-network-wall-end moves one end of one segment of a wall. Segment 0 goes from the first point to the second point. end is 'start' or 'end' of that segment.
Only that end moves. The other wall at the corner stays where it is, and the corner is open. If the new position is on a different wall, the end joins that wall. Floorkit cuts the saved wall at the open corner. A closed wall becomes an open wall with the same id. An open wall becomes two walls, and the new wall gets the old id with a number, such as room-walls-2. Each door and window stays in its segment. If the new position is less than 1 mm from the corner, the corner stays closed and moves to that position.

Where the doors and windows go

When a point or an end of a wall moves, or a wall moves and the walls joined to it follow, the openings field of the command says where the doors, windows and voids of each segment that changes go:
  • 'keep-place', the default: a door stays where it is while its segment keeps its line, so shortening a wall from its start does not move the doors in it. A segment that moves whole carries its doors. A segment that turns about one end keeps each door at its distance from that end.
  • 'keep-station': a door keeps its distance from the start of its segment, as before this option existed.
On an arc both rules keep the distance from the start of the segment. A door that would leave its segment is refused with opening-does-not-fit, and the message names it: move it or remove it in the same batch. The grips of the plan and 3D editors save 'keep-station', because their live drag shows that rule.

Move or turn a full wall

transform-wall turns the wall around origin and then moves it by translation.
In the plan editor, a selected wall has two grips, as a slab has:
  • The round grip above the wall turns the wall around its middle. The editor saves one transform-wall. The walls that it touches do not turn with it.
  • The grip at the middle of the wall moves the wall. The ends of the walls that are joined to it follow, and their doors and windows keep their offset. The editor saves one translate-network-wall.
Each drag is one undo step. Push Escape during a drag to stop it. The editor saves nothing.

Move a set of walls

translate-walls moves several walls of one storey together, such as the walls of a wing, as one step:
  • The walls of the set move whole, with their doors and windows.
  • A wall outside the set whose end meets a wall of the set follows at that end. At a corner it follows by the whole move. At the middle of a moved wall it follows only across that wall, so the T stays a T. Its doors stay where they are (see Where the doors and windows go); a door that would leave its wall is refused and named.
  • Dimensions tied to a moved wall follow it, as for every wall edit of a session.
  • Slabs, roofs, rooms and notes do not move. The step gives a warning with code left-behind-by-wall-move in session.currentBuild.warnings for each slab, roof or room that has a corner on the old line of a moved wall, for each dimension with no wall reference that measured to one, and for each joint that the move opened. Move or reshape them in the same batch if they should follow.

Move a whole building

move-building moves one building by a vector, everything on its storeys with it, as one step. The site stays, so this is how a building moves on its plot:
The levels do not change. The saved views of a project do not move: a plan crop or a section line stays where it was in the world, so move them in the same batch when they should follow.

Add a corner to a wall

insert-wall-point adds a point to a wall at station, the distance in metres along the wall from its first point. The wall keeps its shape, so each door and window stays where it is. To give a closed outline a wing, send insert-wall-point and then move-wall-point for the new point in one batch: one undo takes both back.

Split a wall or merge two walls

split-wall cuts a wall at a distance along it. The first part keeps the id. The second part gets newWallId. Each door and window stays on the part that holds it.
merge-walls joins two walls whose ends meet into one wall. The walls must have the same settings. The merged wall keeps the id of wallId.
When you split a closed wall, such as the room, you get two open walls. They meet at both ends, so the room stays closed. A split inside a door or a window is refused.

Other elements

Slabs, roofs, stairs and rooms have the same kind of command: transform-slab, transform-roof, transform-stair and transform-space. Each one takes an origin, a translation and a yawDeg. To change the shape of one of them, use a reshape command. This example makes the slab from Add a floor slab longer and thicker.
A profile has an outerRing and can have holes. Each one is a list of [x, z] points in metres. All other data of the element stays the same. In the plan editor and the 3D editor, a slab, a ceiling or a FLAT roof with a hole has a grip on each corner of the hole. A drag of one grip sends one reshape-slab or reshape-roof with the new holes; the outer edge stays. A drag cannot add or remove a hole or a corner. If the hole goes across the outer edge, the editor refuses the drag and shows the saved shape again.

Replace or remove an element

A reshape command sets some values of an element. To set all values, send replace-element with the full element. The new element must have the same id. This example gives the slab a new thickness and puts it lower.
list is slabs, roofs, spaces, stairs, columns, beams, railings or instances. Assets and storeys have the same three kinds of command. A ProjectManager also rejects a remove-storey of a storey that a plan view names. To send several commands as one step, put them in a batch. See A batch of commands.

Move or turn a column

A column has no transform command. Send replace-element with a new center and, for a turn, a new rotation. Add the turn to the old rotation. All other values stay the same.
In the plan editor and the 3D editor, a selected column has a move grip and a turn grip. The grips are at its center. One drag is one step.

Move or turn a beam

Send replace-element with new start and end points. Move the x and z of the two points. Keep the y of each point: it is the height above the storey.
In the editors, the move and turn grips of a beam are at the middle of its two ends. A turn turns the two ends around that point.

Move or turn a railing

Send replace-element with a new path. Move each point of the path. Keep the y of each point.
In the editors, the move and turn grips of a railing are at the middle of its path. A railing with a host has no move or turn grips. When you delete its stair, the railing is deleted too.

Delete

In the plan editor and the 3D editor, select an element and push the Delete key. The editor deletes the element in one step, and one undo brings it back. This works for walls, doors, windows, slabs, roofs, rooms, stairs, columns, beams, railings, blocks and the parts of a mass. The editor calls deleteElement of its managed edits. deleteWall deletes only walls and the parts of a mass. It is deprecated. Use deleteElement.

Rules

  • Positions are [x, z] in metres. yawDeg is in degrees, and a positive angle turns counter-clockwise seen from above, +X to −Z.
  • Doors and windows stay in their wall and keep their offset.
  • If a wall becomes too short for one of its openings, apply throws an error and nothing changes.

Handle a rejected edit

Show the message to the user. The building is the same as before the edit.

Next

Undo and redo

Go back one edit.

Add a plan editor

Let the user do these edits with the pointer.
Last modified on November 28, 2026