Jump to content

BIM Slab

From FreeCAD Documentation

BIM Slab

Menu location
3D/BIM → Slab
Workbenches
BIM
Default shortcut
S B
Introduced in version
-
See also
Arch Wall, Arch Window

Description[edit | edit source]

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.

Usage[edit | edit source]

  1. Optionally select a planar object.
  2. There are several ways to invoke the tool:
    • Press the Slab button.
    • Select the 3D/BIM → Slab option from the menu.
    • Use the keyboard shortcut: S then B.
  3. If you have not yet selected a planar object: select one (as prompted in the Report View).
  4. A new Slab object is created and the tool is finished.
  5. Optionally change some properties in the Property View.

Options[edit | edit source]

See Arch Structure.

Notes[edit | edit source]

  • Wrapping behavior: the tool "wraps" the selected object. If you select a sub-element (like a face in the 3D View), the tool identifies the parent object and uses that as the DataBase.
  • Thickness: to change the thickness of the slab, modify the DataHeight property.
  • Orientation: To make the slab extrude upwards, change the DataNormal property to (0, 0, 1).

Properties[edit | edit source]

A Slab object shares the common properties and behaviors of all Arch Structures. Its DataIfcType is preset to Slab.

Scripting[edit | edit source]

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()