๐ 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,.dwgto:- ๐ 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:
- Download from: https://nodejs.org/en/download
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
-
Clone or import the workflow:
โฌ Download JSON file -
In n8n, import the workflow via "Import from file".
-
Configure paths:
- Set absolute path to
RvtExporter.exein the$INPUTS$node. - Example:
C:\out\DDC-Converters\RvtExporter.exe
- Set absolute path to
๐ฏ 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]
๐ฌ Example Use
- Upload your
.rvtfile - Choose options: sheets, schedules, bounding box
- AI understands your prompt:
โGroup by
Type Name, sumVolume, and show a bar chart.โ
You'll get the result instantly โ no coding needed.
๐ Extras
- ๐ Validation template: DDC Revit & IFC Validation Table
- ๐ Example AI-generated outputs: grouped tables, bar plots, summaries
๐ง Powered by
n8nDataDrivenConstruction.io- Offline
.execonverters (no Autodeskยฎ tools required)
๐ Support
Need help or ideas for automation?
Visit ๐ https://datadrivenconstruction.io or open an issue in this repo.