BIM & Architecture
Same parametric idea, tuned for buildings: elements are typed and hosted (a door only exists inside a wall), structure is first-class, and a schedule or a drawing sheet is just a view of the same model, not a separate document.
Complete Building — Ground Floor with Structure
NEW BIM PROJECT UNITS "mm" SET ?bim
BIM ?bim LEVEL "Ground Floor" ELEVATION 0 SET ?lvl0
AFTER BIM ?bim LEVEL "Level 1" ELEVATION 3000 SET ?lvl1
AFTER BIM ?bim WALL FROM 0,0 TO 6000,0 HEIGHT 3000 THICKNESS 200 TYPE "Concrete-200mm" SET ?wall1
AFTER BIM ?bim DOOR IN ?wall1 AT 1200 WIDTH 900 HEIGHT 2100 TYPE "Single-Flush" SET ?door1
AFTER BIM ?bim WINDOW IN ?wall1 AT 3200 SILL 900 WIDTH 1500 HEIGHT 1200 SET ?win1
AFTER BIM ?bim COLUMN AT 0,0 HEIGHT 3000 TYPE "UC-254x254" SET ?col1
AFTER BIM ?bim BEAM FROM 0,0 TO 6000,0 ELEVATION 3000 TYPE "UB-406x178" SET ?beam1
Schedules — A View of What Is Already There
BIM ?bim LIST SET ?all
AFTER COUNT ?all SET ?n
AFTER EMIT ?n & " elements"
AFTER BIM ?bim SCHEDULE "Door Schedule" CATEGORY "Door" SET ?doors
AFTER FOREACH ?doors SET ?d
OPEN
EMIT ?d("label") & " — " & ?d("type") & "<br>"
CLOSE
CATEGORY matches an element’s type or the name you gave it. To the geometry kernel a door is a window hosted in a wall, so a schedule of “Doors” finds them by what you called them — which is why naming elements as you place them is worth the keystrokes.IFC Export — Out to Every Other Tool
BIM ?bim EXPORT AS "ifc" SET ?path
AFTER EMIT ?path
A model leaves as IFC4, the format every other BIM tool reads. A building assembled here opens in Revit, ArchiCAD or Solibri as walls, columns and windows — not as a mesh that used to be a building.
Not yet built. Stairs, room boundaries, drawing sheets, parametric families, dimensions, tags and clash detection are not part of this. What is here is the model itself — levels, walls, hosted openings, structure, schedules and IFC export — and every example on this page has been run as written.
BIM ?bim EXPORT AS "ifc" SET ?path
AFTER EMIT ?path