Skip to content

v0.6.0 — Production-Grade Commercial Architecture & Official Thai CGD ว480 BOQ Engine

Choose a tag to compare

@PRIDA-TAKON PRIDA-TAKON released this 15 Oct 05:06
· 106 commits to main since this release

🏛️ debim v0.6.0: Production-Grade Commercial Architecture & Official Thai CGD ว480 BOQ Engine

"Scale from simple pavilions to full multi-bay commercial complexes and vernacular architecture with zero-dependency declarative building-as-code and deterministic Thai government cost estimation."


Highlights & Major Features

1. Multi-Bay Modular Architecture & AST Expansion (modules:, instances: replicate:)

  • AST Preprocessor: Declarative definition of reusable spatial blocks via modules: and automatic replication via instances: replicate:.
  • Dynamic Grid Remapping: Multi-axis grid translations (along: grid_x, along: grid_y) with per-unit prefix patterns (e.g. U{index}_).
  • Party Wall Deduplication: Automated structural detection and deduplication of party walls between adjoining units, avoiding double-counting in geometry and BOQ.
  • Real-World DPT Validation: Proven against the official Department of Public Works and Town & Country Planning (กรมโยธาธิการและผังเมือง) 4-bay 3-storey shophouse (shophouse_isan_3fl.debim, 371 elements), reducing manifest length by over 75%.

2. Slab Voids & Double-Volume Cutouts (IfcSlab.voids)

  • Inner Boundary Loops: Native support for slab voids (voids:) for stairwells, light shafts, and double-volume atriums.
  • Accurate QTO Deductions: Concrete volumes and formwork surface areas automatically deduct interior cutouts via Shoelace polygon math.

3. Parametric Roof Generator (IfcRoof)

  • Vernacular & Modern Typologies: Built-in geometric generators for GABLE_HIP (Manila / ทรงจั่วผสมปั้นหยา), HIP (ปั้นหยา), GABLE (จั่ว), and SHED (เพิงหมาแหงน).
  • Pitch Angle Geometry (pitch_deg): Direct degree-based pitch inputs eliminating complex manual trigonometric offsets.
  • Automated Framing: Generates structural framing elements (rafters, purlins, steel weight per m²) for exact structural costing.

4. Monolithic RC Dog-Leg Stairs Engine (IfcStair: DOG_LEG)

  • Engineering-Grade Stairs: Generates full reinforced concrete dog-leg stairs with intermediate landings, flights, risers, treads, and waist thickness.
  • Zero-Dependency 3D Mesh: Procedural step-and-landing solid geometry rendered in the standalone HTML viewer and compiled to standard OpenBIM IFC4.

5. Official Thai Comptroller General's Department CGD ว480 BOQ Engine (debim boq --rules cg-v480)

  • Standard Public Works Sheets: Generates official government tender documents:
    • แบบ ปร.4: Detailed quantity take-off, material unit costs, and labor rates.
    • แบบ ปร.4(พ): Reinforcement steel schedules (RB6, RB9, DB12, DB16, DB20, DB25) and formwork summary.
    • แบบ ปร.5: Direct cost summary, official Factor F table with linear interpolation, and VAT 7%.
  • Provincial Price Index Multipliers (--province <name>): Built-in material price indexes across all 77 Thai provinces.
  • Excel Export (--export-excel): Professional multi-sheet Excel workbook export (.xlsx).

6. Structural Continuity & Bounding-Box Clash Detection (debim validate)

  • Vertical Continuity Checks: Verifies that upper-floor columns rest on lower-floor structural columns or transfer beams.
  • 3D Clash Detection: Fast Axis-Aligned Bounding Box (AABB) collision detection flags physical structural intersections before compilation.

7. Ecosystem & AI Agent Skills

  • Antigravity & Workspace Skills: Official skills pre-configured under .agents/skills/debim and skills/debim for instant agent progressive disclosure.
  • Live Ministry of Commerce Prices (thai_construction_material_prices): Bundled live material price searcher querying official TPSO data via yotathai.com.

CLI Command Reference (v0.6.0)

# Validate structural continuity and collision clashes
debim validate -m shophouse_isan_3fl.debim

# Generate official Thai CGD ว480 BOQ for Nakhon Ratchasima province
debim boq --rules cg-v480 --province nakhon_ratchasima -m shophouse_isan_3fl.debim --export-excel boq_shophouse.xlsx

# Interactive 3D visualization in browser
debim view -m shophouse_isan_3fl.debim

debim is proudly developed and maintained by Prida Takon (@PRIDA-TAKON). Special thanks to Google Antigravity and Jules AI for pair programming and autonomous execution!