Skip to content

datadrivenconstruction/CAD-BIM-to-Code-Automation-Pipeline-DDC-Workflow-with-LLM-ChatGPT

Repository files navigation

DDC Logo

🚀 CAD-(BIM)-to-Code Automation Pipeline with LLM (ChatGPT)

Revit (.rvt), AutoCAD (.dwg), IFC, MicroStation (.dgn) → Excel + AI-Generated Python Analysis — no Autodesk® or openBIM tools required

🔄 Built for fully offline workflows using n8n + DataDrivenConstruction Converters


🛠 Features

  • 🔄 Convert .rvt, .ifc, .dwg to:
    • 📊 Excel (element data as a matrix - project elements in the rows, all properties of all elements in the columns))
    • 🧱 Polygonal geometry (only Revit and IFC) into an open geometric format .dae (Collada)
    • 📋 Schedules (only for Revit)
    • 📄 Drawing Sheets (PDF) (only for Revit)
  • ✅ Quality Control with validation rules
  • 🤖 Ask AI to generate custom Python code
  • 📈 Instantly get charts, stats, summaries from your model

📦 Installation Guide

1. Install n8n on Windows

Before installing n8n, make sure Node.js (which includes npm) is installed:

npx install -g n8n
n8n start

or

npx n8n

Or download desktop app: n8n.io/download

2. Download Converters

Either use the converters that are in the repository or download the always fresh ones directly from the site:

Format Converter Download
Revit (.rvt) RvtExporter.exe Download
IFC IfcExporter.exe Download
AutoCAD (.dwg) DwgExporter.exe Download
MicroStation (.dgn) DgnExporter.exe Download

⚙️ Quick Setup

  1. Clone or import the workflow:
    ⬇ Download JSON file

  2. In n8n, import the workflow via "Import from file".

  3. Configure paths:

    • Set absolute path to RvtExporter.exe in the $INPUTS$ node.
    • Example:
      C:\out\DDC-Converters\RvtExporter.exe
      

🎯 Workflow Overview

graph TD;
    A[📋 Upload RVT/IFC/DWG/DGN file] --> B[📁 Create Workspace]
    B --> C[⚙️ Run Pipeline-Converter]
    C --> D{✅ Success?}
    D -->|Yes| E[📥 Read Excel, PDFs, Schedules]
    D -->|No| F[❌ Show Error]
    E --> G[🔍 Validate with Excel Rules]
    G --> H[🤖 AI Code Generator]
    H --> I[📊 Charts, Stats, Python Output]
Loading

💬 Example Use

  • Upload your .rvt file
  • Choose options: sheets, schedules, bounding box
  • AI understands your prompt:

“Group by Type Name, sum Volume, and show a bar chart.”

You'll get the result instantly — no coding needed.


📎 Extras


🧠 Powered by


🛟 Support

Need help or ideas for automation?
Visit 👉 https://datadrivenconstruction.io or open an issue in this repo.

DDC Logo

About

Automatically generate any useful, project-specific Python code (e.g. volume grouping, charts, QC reports) directly from raw Revit (IFC, DWG) data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published