|
|
| Menu location |
|---|
| 3D/BIM → Slab |
| Workbenches |
| BIM |
| Default shortcut |
| S B |
| Introduced in version |
| - |
| See also |
| Arch Wall, Arch Window |
The BIM Slab tool creates a Slab object, a horizontal structure element, from a planar shape. Slabs are specialized Arch Structure objects with their DataIfc Type preset to "Slab".
While it behaves like a standard Arch Structure, the BIM tool specifically initializes the slab with a default height (thickness) of 200 mm and an extrusion direction pointing downwards.
(0, 0, 1).A Slab object shares the common properties and behaviors of all Arch Structures. Its DataIfcType is preset to Slab.
The BIM Slab is created using the same Python function as Arch Structures:
import FreeCAD
import Arch
import Draft
# Create a rectangle profile
rect = Draft.make_rectangle(length=2000, width=3000)
FreeCAD.ActiveDocument.recompute()
# Create a structure and define it as a slab
slab = Arch.makeStructure(rect)
slab.IfcType = "Slab"
slab.Height = 150 # mm
slab.Normal = (0, 0, -1) # Slab is extruded downwards
FreeCAD.ActiveDocument.recompute()