Before you start
You have a session from Start a building.Write the slab
This slab goes below the room from Draw a wall. The path of a wall is its centre line, and those walls are 0.2 metres thick. Thus the slab outline is 0.1 metres outside the wall path, at the outer face of the walls. The slab is 0.2 metres thick. Its top is at the storey elevation, so its bottom is 0.2 metres below.Add it to the storey
A slab is an entry in theslabs list of its storey.
add-element command adds the slab to the list, and the session builds it. You keep the session and its undo history. The command rejects an id that the list has.
Rules
outerRingis a list of[x, z]points in metres. Do not repeat the first point.- A wall path is the centre line of the wall. To put the edge of a slab at the outer face of a wall, move the outline half of the wall thickness out from the path.
baseOffsetis the distance from the storey elevation to the bottom of the slab.rolecan be'slab','floor'or'ceiling'. The role names the element. It does not change the shape.- For a hole, such as a stair opening, add a ring to
profile.holes.
Move the slab
A slab that is in the model has a move command:Next
Add a roof
Close the building at the top.
Slab API
See each option of a slab.