๐Ÿ”ฌ 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

What it does

  1. Extracts BIM data from Revit model via converter (RvtExporter)
  2. Classifies building vs non-building elements using AI
  3. Detects project type (Residential/Commercial/Industrial)
  4. Generates construction phases and assigns element types
  5. Decomposes each BIM type into detailed work items
  6. Searches DDC CWICR vector database for matching rates
  7. Calculates costs with unit mapping and resource breakdown
  8. Validates work completeness and checks for gaps
  9. 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

StageNameDescription
0CollectGather filtered BIM data
1Project TypeAI detects Residential/Commercial/Industrial
2PhasesAI generates construction phases
3AssignmentAI assigns element types to phases
4DecompositionAI breaks types into work items
5Vector SearchQuery Qdrant for pricing rates
6Unit MappingConvert BIM units to rate units
7CalculationCompute costs (Qty ร— Price)
7.5ValidationAI checks completeness, finds gaps
8AggregationSum costs by phases
9ReportsGenerate HTML + XLS outputs

Prerequisites

ComponentRequirement
n8nv1.30+ with Execute Command node
Revit ExporterRvtExporter.exe (provided separately)
OpenAI APIFor embeddings + LLM tasks
QdrantVector DB with DDC CWICR collections
DDC CWICR DataGitHub
WindowsFor 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

CodeLanguageCityCurrency
ARArabicDubaiAED
ZHChineseShanghaiCNY
DEGermanBerlinEUR
ENEnglishTorontoCAD
ESSpanishBarcelonaEUR
FRFrenchParisEUR
HIHindiMumbaiINR
PTPortugueseSรฃo PauloBRL
RURussianSt. PetersburgRUB

3. Configure AI Model

Connect your preferred LLM in the model nodes:

ProviderModelNotes
OpenAIGPT-4oDefault, recommended
AnthropicClaude Opus 4High quality
GoogleGemini 2.5 ProGood for large contexts
xAIGrok 4Fast inference
DeepSeekDeepSeek ChatCost-effective
OpenRouterVariousMulti-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:

Features

FeatureDescription
๐Ÿ—๏ธ Revit IntegrationDirect extraction from .rvt files (2015โ€“2026)
๐Ÿค– Multi-LLM SupportOpenAI, Claude, Gemini, Grok, DeepSeek
๐Ÿ” Smart ClassificationAI separates building from non-building elements
๐Ÿ“Š Work DecompositionBreaks BIM types into detailed work items
๐ŸŽฏ Vector SearchSemantic matching via Qdrant + OpenAI embeddings
๐Ÿงฎ Unit MappingAutomatic conversion (mยฒ โ†’ 100 mยฒ, pcs โ†’ sets)
โœ… AI ValidationChecks for missing works and duplications
๐Ÿ“ˆ Phase AggregationCosts grouped by construction phases
๐Ÿ“„ HTML ReportProfessional report with quality indicators
๐Ÿ“‘ Excel ExportXLS file with formulas and links
๐ŸŒ 9 LanguagesFull localization + regional pricing

Hard Exclude Categories

The pipeline automatically excludes non-physical elements:

Example Output

Input: Residential building Revit model (45 element types)

Processing:

Output Files:

project_2024-12-08.html  โ†’ Professional HTML report
project_2024-12-08.xls   โ†’ Excel with full breakdown

HTML Report Features:

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

Extending the Pipeline

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:

Contact us to adapt this pipeline to your Revit templates and regional pricing.

Resources


โญ 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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup