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].
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.
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, theopenings 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.
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.
- 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 onetranslate-network-wall.
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-moveinsession.currentBuild.warningsfor 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 samebatchif 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:
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.
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
Areshape 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. Sendreplace-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.
Move or turn a beam
Sendreplace-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.
Move or turn a railing
Sendreplace-element with a new path. Move each point of the path. Keep the y of each point.
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 callsdeleteElement 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.yawDegis 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,
applythrows an error and nothing changes.
Handle a rejected edit
Next
Undo and redo
Go back one edit.
Add a plan editor
Let the user do these edits with the pointer.