๐ฌ Estimate 4D/5D construction costs from Revit BIM models with DDC CWICR
โก 96 views ยท ๐ฌ Document Extraction & Analysis
Description
A professional BIM-to-cost pipeline that extracts data from Revit models (2015โ2026), classifies elements with AI, decomposes them into construction works, and generates detailed cost estimates using the open-source DDC CWICR database. Produces HTML reports and Excel exports with full resource breakdown.
Whoโs it for
- BIM Managers automating quantity takeoff and cost estimation
- Cost Engineers integrating 5D workflows into design pipelines
- Construction Companies standardizing estimates from Revit models
- General Contractors doing rapid budget checks during design
- MEP Engineers pricing mechanical/electrical/plumbing systems
- Developers building custom BIM-to-cost integrations
What it does
- Extracts BIM data from Revit model via converter (RvtExporter)
- Classifies building vs non-building elements using AI
- Detects project type (Residential/Commercial/Industrial)
- Generates construction phases and assigns element types
- Decomposes each BIM type into detailed work items
- Searches DDC CWICR vector database for matching rates
- Calculates costs with unit mapping and resource breakdown
- Validates work completeness and checks for gaps
- Generates professional HTML report + Excel file
How it works
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ REVIT MODEL (.rvt) โ
โ Revit 2015โ2026 supported โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 1: CONVERSION โ
โ RvtExporter.exe โ Excel with BIM element schedules โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 2: DATA LOADING & CLASSIFICATION โ
โ โข Filter 3D View elements only โ
โ โข AI analyzes headers โ aggregation rules (sum/mean/last) โ
โ โข AI classifies building vs non-building elements โ
โ โข Hard exclude: Grids, Levels, Annotations, Views, etc. โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 3: PROJECT ANALYSIS (Stages 0โ3) โ
โ STAGE 0: Collect filtered BIM data โ
โ STAGE 1: AI detects project type โ
โ STAGE 2: AI generates construction phases โ
โ STAGE 3: AI assigns element types to phases โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 4: WORK DECOMPOSITION (Stage 4) โ
โ Loop through each BIM type: โ
โ โข AI decomposes type into work items โ
โ โข Example: Window โ Demolition, Installation, Sealing, Hardware โ
โ โข Prepares search queries for pricing โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 5: PRICING & CALCULATION (Stages 5โ7) โ
โ STAGE 5: Vector search in Qdrant (text-embedding-3-large, 3072 dim) โ
โ STAGE 6: Map BIM units โ Rate units (mยฒ โ 100 mยฒ) โ
โ STAGE 7: Calculate costs (Qty ร Unit Price) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 6: VALIDATION & AGGREGATION โ
โ STAGE 7.5: AI validates work completeness โ
โ STAGE 8: Aggregate costs by phases โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BLOCK 7: REPORT GENERATION (Stage 9) โ
โ โข Professional HTML report with expandable rows โ
โ โข Excel-compatible XLS file โ
โ โข Auto-opens in browser โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Pipeline Stages
| Stage | Name | Description |
|---|---|---|
| 0 | Collect | Gather filtered BIM data |
| 1 | Project Type | AI detects Residential/Commercial/Industrial |
| 2 | Phases | AI generates construction phases |
| 3 | Assignment | AI assigns element types to phases |
| 4 | Decomposition | AI breaks types into work items |
| 5 | Vector Search | Query Qdrant for pricing rates |
| 6 | Unit Mapping | Convert BIM units to rate units |
| 7 | Calculation | Compute costs (Qty ร Price) |
| 7.5 | Validation | AI checks completeness, finds gaps |
| 8 | Aggregation | Sum costs by phases |
| 9 | Reports | Generate HTML + XLS outputs |
Prerequisites
| Component | Requirement |
|---|---|
| n8n | v1.30+ with Execute Command node |
| Revit Exporter | RvtExporter.exe (provided separately) |
| OpenAI API | For embeddings + LLM tasks |
| Qdrant | Vector DB with DDC CWICR collections |
| DDC CWICR Data | GitHub |
| Windows | For Revit converter execution |
Setup
1. Configure File Paths
In Setup - Define file paths node:
{
"path_to_converter": "C:\\path\\to\\RvtExporter.exe",
"project_file": "C:\\path\\to\\your_project.rvt",
"group_by": "Type Name",
"language_code": "DE"
}
2. Select Language & Region
| Code | Language | City | Currency |
|---|---|---|---|
| AR | Arabic | Dubai | AED |
| ZH | Chinese | Shanghai | CNY |
| DE | German | Berlin | EUR |
| EN | English | Toronto | CAD |
| ES | Spanish | Barcelona | EUR |
| FR | French | Paris | EUR |
| HI | Hindi | Mumbai | INR |
| PT | Portuguese | Sรฃo Paulo | BRL |
| RU | Russian | St. Petersburg | RUB |
3. Configure AI Model
Connect your preferred LLM in the model nodes:
| Provider | Model | Notes |
|---|---|---|
| OpenAI | GPT-4o | Default, recommended |
| Anthropic | Claude Opus 4 | High quality |
| Gemini 2.5 Pro | Good for large contexts | |
| xAI | Grok 4 | Fast inference |
| DeepSeek | DeepSeek Chat | Cost-effective |
| OpenRouter | Various | Multi-model access |
4. Set Up Qdrant
Ensure DDC CWICR collections are loaded:
DE_BERLIN_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
ENG_TORONTO_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
RU_STPETERSBURG_workitems_costs_resources_EMBEDDINGS_3072_DDC_CWICR
...
5. Configure OpenAI Credentials
Set up OpenAI API credential for:
- Embeddings (text-embedding-3-large, 3072 dimensions)
- LLM calls (if using OpenAI as primary model)
Features
| Feature | Description |
|---|---|
| ๐๏ธ Revit Integration | Direct extraction from .rvt files (2015โ2026) |
| ๐ค Multi-LLM Support | OpenAI, Claude, Gemini, Grok, DeepSeek |
| ๐ Smart Classification | AI separates building from non-building elements |
| ๐ Work Decomposition | Breaks BIM types into detailed work items |
| ๐ฏ Vector Search | Semantic matching via Qdrant + OpenAI embeddings |
| ๐งฎ Unit Mapping | Automatic conversion (mยฒ โ 100 mยฒ, pcs โ sets) |
| โ AI Validation | Checks for missing works and duplications |
| ๐ Phase Aggregation | Costs grouped by construction phases |
| ๐ HTML Report | Professional report with quality indicators |
| ๐ Excel Export | XLS file with formulas and links |
| ๐ 9 Languages | Full localization + regional pricing |
Hard Exclude Categories
The pipeline automatically excludes non-physical elements:
- Levels, Grids, Reference Planes
- Annotations, Dimensions, Text Notes
- Tags, Views, Sheets, Schedules
- Legends, Viewports, Section Boxes
- Scope Boxes, Match Lines
- Model Groups, Detail Groups
- Entourage (RPC people, cars, plants)
Example Output
Input: Residential building Revit model (45 element types)
Processing:
- Project type detected: Residential Multi-Family
- Phases generated: Foundations โ Structure โ Envelope โ MEP โ Finishes
- Types assigned: 45 types โ 5 phases
- Works decomposed: 45 types โ 280 work items
- Rates found: 245/280 (87.5%)
Output Files:
project_2024-12-08.html โ Professional HTML report
project_2024-12-08.xls โ Excel with full breakdown
HTML Report Features:
- KPI summary (total cost, items, phases)
- Expandable phase sections
- Quality indicators (โ green/yellow/red)
- Resource breakdown per work item
- Clickable rate codes
- Responsive design
Output Structure
๐ Cost Estimate: Residential Building
โโโ ๐ Phase 1: Foundations
โ โโโ Foundation walls โ 125.5 mยณ โ โฌ12,450
โ โโโ Concrete footings โ 45.2 mยณ โ โฌ8,340
โ โโโ Waterproofing โ 280 mยฒ โ โฌ4,200
โโโ ๐ Phase 2: Structure
โ โโโ Concrete columns โ 18 pcs โ โฌ9,720
โ โโโ Floor slabs โ 450 mยฒ โ โฌ67,500
โ โโโ Stairs โ 3 flights โ โฌ8,100
โโโ ๐ Phase 3: Envelope
โ โโโ Exterior walls โ 680 mยฒ โ โฌ95,200
โ โโโ Windows โ 42 pcs โ โฌ25,200
โ โโโ Roof system โ 225 mยฒ โ โฌ33,750
โโโ ๐ฐ TOTAL: โฌ485,240
Notes & Tips
- First run: Conversion takes 1โ3 minutes depending on model size
- Cached conversion: Subsequent runs skip conversion if Excel exists
- Testing mode: Limit to 10 types for faster debugging
- Rate accuracy: Depends on DDC CWICR coverage for your region
- Custom phases: AI adapts phases based on project type
- Missing rates: Flagged with red indicator in report
Extending the Pipeline
- Add custom rates: Extend Qdrant collection with your pricing
- Chain to PM tools: Connect to OpenProject, Monday, Asana
- Email reports: Add email node after report generation
- Cloud storage: Upload to Google Drive, OneDrive, S3
- Webhook trigger: Replace manual trigger for API access
Categories
AI ยท Data Transformation ยท Document Ops ยท Files & Storage
Tags
bim, revit, cost-estimation, 5d-bim, 4d-bim, qdrant, vector-search, openai, construction, quantity-takeoff, html-report, multilingual
Author
DataDrivenConstruction.io
https://DataDrivenConstruction.io
info@datadrivenconstruction.io
Consulting & Training
We help AEC firms implement:
- BIM-to-cost automation pipelines
- 4D/5D integration workflows
- Custom Revit data extractors
- AI-powered estimation systems
- Vector database deployment for construction data
Contact us to adapt this pipeline to your Revit templates and regional pricing.
Resources
- DDC CWICR Database: GitHub
- Qdrant Documentation: qdrant.tech/documentation
- OpenAI Embeddings: platform.openai.com
- n8n Execute Command: docs.n8n.io
โญ Star us on GitHub! github.com/datadrivenconstruction/DDC-CWICR
๐ Nodes Used
Read Binary File, Spreadsheet File, Write Binary File, Basic LLM Chain, Embeddings OpenAI, Anthropic Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File