# datadrivenconstruction/cad2data-revit-ifc-dwg-dgn architecture

> Architecture diagram of the GitHub repository datadrivenconstruction/cad2data-revit-ifc-dwg-dgn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn
- Repository: https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn

## Overview

1. **What this repository is**
   This repo is primarily a distribution and automation hub for DataDrivenConstruction’s CAD/BIM toolchain, not a single application. It combines prebuilt Windows converter packages, Linux deployment packages, Cloudflare-based dashboard/analytics code, n8n workflow definitions, Python notebooks, and extensive operational/documentation assets.

2. **Core conversion boundary: the Windows converter bundles**
   `DDC_WINDOWS_Converters/` is the main “engine” layer. It contains separate packaged products for Revit, Revit→IFC, IFC, DWG, DGN, and an Excel→Revit update tool. Each converter ships as a self-contained Windows distribution with the executable, native libraries, platform/style assets, and product-specific licensing/docs. These binaries are the primary entry point for file conversion and extraction.

3. **Primary data flow: CAD/BIM file to structured outputs**
   The central pipeline is: input `.rvt`, `.ifc`, `.dwg`, or `.dgn` files → converter executable → structured artifacts such as `.xlsx`, `.dae`, `.pdf`, and `.ifc`. The important architectural idea is that geometry and metadata are split into tabular data for downstream processing, while IDs are preserved so spreadsheet rows can be matched back to geometry and model elements.

4. **Automation/orchestration layer: n8n workflows**
   `DDC_n8n_Workflows&Pipelines/` holds JSON workflows that wrap the converters into reusable pipelines. These workflows handle basic conversion, advanced export settings, batch processing, validation, AI-based classification, cost estimation, carbon estimation, ETL extraction, and HTML QTO reporting. In the architecture, n8n is the orchestration shell around the converters, not the conversion engine itself.

5. **AI and estimation workflows as downstream consumers**
   Several workflows depend on the structured Excel output as the canonical interchange format. They group and classify elements, then feed them into LLM-based classification, pricing, or carbon calculations. The architecture boundary here is: converters produce normalized tabular model data; AI/workflow layers consume that data for semantic enrichment and reporting.

6. **Semantic search / cost database subsystem**
   The workflows for classification, pricing, and carbon estimation integrate with the external DDC CWICR data platform and Qdrant vector search. This is a separate semantic lookup boundary from the converters themselves: it provides multilingual work-item matching, pricing lookup, and resource decomposition after model extraction.

7. **Linux-side distribution and local service packages**
   `DDC_LINUX_Converters/` packages the Linux-facing runtime and services. It includes a CLI package (`ddc-cwicr-cli` with `ddc-search`), a Qdrant package with systemd service/configuration, and a dashboard application with Cloudflare Worker/Functions code. This layer appears to support search, dashboarding, and deployment of the CWICR-backed services rather than file conversion.

8. **Analytics dashboard subsystem**
   `DDC_LINUX_Converters/dashboard/` is a TypeScript/Cloudflare-style app with static frontend assets and API endpoints such as `summary`, `timeseries`, `aggregate`, `cities`, `organizations`, and `geography`. That implies a reporting/analytics surface over indexed project or work-item data, likely fed by the worker-backed storage layer and used to present summaries, trends, and geographic breakdowns.

9. **Worker and database boundary**
   `DDC_LINUX_Converters/worker/` contains TypeScript worker code plus SQL migrations. The migrations create tables and indexes, including geo/org fields, which indicates a persistent analytics datastore behind the dashboard. The worker is therefore the backend boundary for the dashboard, handling aggregation and query logic over structured records.

10. **Packaging and deployment mechanics**
   The Linux subtree includes build and deploy scripts, while the Windows subtree is packaged as installable tool distributions. That split matters architecturally: the repo is designed to ship binaries and service packages, not compile everything from one source tree. The “build” artifacts are mostly packaging/deployment logic around external/native converter executables.

11. **Documentation, samples, and AI-agent context as enabling layers**
   `DDC_in_additon/`, `Sample_Projects/`, and `AI_AGENTS_INSTRUCTIONS/` are supporting subsystems. The sample files provide realistic inputs; the docs define usage and workflows; the AI instructions folder gives LLM agents the domain context needed to operate the CLI and workflows correctly. These are not runtime components, but they shape how the system is used and automated.

12. **Overall architecture in one sentence**
   The repository’s architecture is a conversion-and-orchestration stack: native CAD/BIM converters produce structured model data, workflow engines and notebooks transform it into QA, reporting, AI classification, cost, and carbon outputs, and a separate Linux dashboard/worker layer serves analytics and search over the resulting data.

Main entry points: [`AI_AGENTS_INSTRUCTIONS`](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/AI_AGENTS_INSTRUCTIONS) (Docs), [`Sample_Projects`](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/Sample_Projects) (Samples), [`DDC_n8n_Workflows&Pipelines`](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_n8n_Workflows&Pipelines) (n8n flows), [`DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT`](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT) (Revit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_windows_converters["Windows converters"]
  node_revit_conv["Revit<br/>converter bundle"]
  node_revit_ifc_conv["Revit→IFC<br/>converter bundle"]
  node_ifc_conv["IFC<br/>converter bundle"]
  node_dwg_conv["DWG<br/>converter bundle"]
  node_dgn_conv["DGN<br/>converter bundle"]
  node_excel_update["Revit Excel<br/>plugin package"]
end

subgraph group_linux_services["Linux services"]
  node_cli["ddc-search<br/>CLI package"]
  node_qdrant[("Qdrant<br/>vector service package")]
  node_worker["Worker<br/>API backend"]
  node_dashboard["Dashboard<br/>analytics app"]
  node_deploy["Deploy scripts<br/>packaging scripts"]
end

subgraph group_workflows_docs["Workflows & docs"]
  node_n8n["n8n flows<br/>workflow pipelines"]
  node_notebooks["Python notebooks<br/>analysis pipelines"]
  node_docs["Docs"]
end

subgraph group_samples["Samples"]
  node_samples["Samples<br/>input projects"]
end

node_repo(("Repo<br/>distribution hub"))
node_conversion_flow["Normalized data<br/>tabular interchange"]
node_semantic_lookup{{"CWICR lookup<br/>semantic search layer"}}
node_analytics_store[("Analytics store<br/>persistent datastore")]

node_repo -->|"ships"| node_revit_conv
node_repo -->|"ships"| node_revit_ifc_conv
node_repo -->|"ships"| node_ifc_conv
node_repo -->|"ships"| node_dwg_conv
node_repo -->|"ships"| node_dgn_conv
node_repo -->|"ships"| node_excel_update
node_samples -->|"tests"| node_revit_conv
node_samples -->|"tests"| node_ifc_conv
node_samples -->|"tests"| node_dwg_conv
node_samples -->|"tests"| node_revit_ifc_conv
node_revit_conv -->|"exports"| node_conversion_flow
node_revit_ifc_conv -->|"exports"| node_conversion_flow
node_ifc_conv -->|"exports"| node_conversion_flow
node_dwg_conv -->|"exports"| node_conversion_flow
node_dgn_conv -->|"exports"| node_conversion_flow
node_conversion_flow -->|"feeds"| node_n8n
node_conversion_flow -->|"feeds"| node_notebooks
node_n8n -->|"calls"| node_semantic_lookup
node_semantic_lookup -->|"indexes"| node_qdrant
node_semantic_lookup -->|"exposes"| node_cli
node_n8n -->|"publishes"| node_dashboard
node_worker -->|"queries"| node_analytics_store
node_dashboard -->|"requests"| node_worker
node_deploy -->|"packages"| node_cli
node_deploy -->|"packages"| node_qdrant
node_deploy -->|"deploys"| node_worker
node_docs -->|"documents"| node_n8n
node_docs -->|"documents"| node_cli
node_docs -->|"documents"| node_revit_conv
node_docs -->|"documents"| node_dashboard

click node_revit_conv "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT"
click node_revit_ifc_conv "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_Revit2IFC/DDC_REVIT2IFC_CONVERTER"
click node_ifc_conv "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_IFC"
click node_dwg_conv "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_DWG"
click node_dgn_conv "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_DGN"
click node_excel_update "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_Update_Revit_from_Excel"
click node_n8n "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_n8n_Workflows&Pipelines"
click node_notebooks "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_in_additon/DDC_python_pipelines"
click node_docs "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/AI_AGENTS_INSTRUCTIONS"
click node_samples "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/Sample_Projects"
click node_cli "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/ddc-cwicr-cli"
click node_qdrant "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/ddc-qdrant"
click node_worker "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/worker"
click node_dashboard "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/dashboard"
click node_deploy "https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/scripts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_revit_conv,node_revit_ifc_conv,node_ifc_conv,node_dwg_conv,node_dgn_conv,node_excel_update toneBlue
class node_cli,node_qdrant,node_worker,node_dashboard,node_deploy toneAmber
class node_n8n,node_notebooks,node_docs toneMint
class node_samples toneRose
class node_repo,node_conversion_flow,node_semantic_lookup,node_analytics_store toneNeutral
```

## Components

### Windows converters

Packaged CAD/BIM conversion bundles for Windows inputs and exports.

- [Revit](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT): converter bundle · Windows bundle for extracting and exporting data from Revit projects. · `DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT`
- [Revit→IFC](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_Revit2IFC/DDC_REVIT2IFC_CONVERTER): converter bundle · Windows bundle for converting Revit models into IFC-oriented outputs. · `DDC_WINDOWS_Converters/DDC_CONVERTER_Revit2IFC/DDC_REVIT2IFC_CONVERTER`
- [IFC](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_IFC): converter bundle · Windows bundle for IFC conversion and extraction. · `DDC_WINDOWS_Converters/DDC_CONVERTER_IFC`
- [DWG](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_DWG): converter bundle · Windows bundle for DWG conversion and extraction. · `DDC_WINDOWS_Converters/DDC_CONVERTER_DWG`
- [DGN](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_CONVERTER_DGN): converter bundle · Windows bundle for DGN conversion and extraction. · `DDC_WINDOWS_Converters/DDC_CONVERTER_DGN`
- [Revit Excel](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_WINDOWS_Converters/DDC_Update_Revit_from_Excel): plugin package · Revit plugin installers for updating Revit models from Excel data. · `DDC_WINDOWS_Converters/DDC_Update_Revit_from_Excel`

### Linux services

Search, dashboard, worker, and deployment packages for CWICR-backed services.

- [ddc-search](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/ddc-cwicr-cli): CLI package · Debian-packaged CLI for CWICR search and lookup on Linux. · `DDC_LINUX_Converters/ddc-cwicr-cli`
- [Qdrant](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/ddc-qdrant): vector service package · Packaged vector database and systemd service for semantic matching and retrieval. · `DDC_LINUX_Converters/ddc-qdrant`
- [Worker](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/worker): API backend · Cloudflare worker code and SQL migrations powering analytics queries and persistence. · `DDC_LINUX_Converters/worker`
- [Dashboard](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/dashboard): analytics app · Cloudflare-style dashboard with API endpoints for summaries, timeseries, geography, and org breakdowns. · `DDC_LINUX_Converters/dashboard`
- [Deploy scripts](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_LINUX_Converters/scripts): packaging scripts · Shell scripts for building, deploying, and publishing Linux-side packages. · `DDC_LINUX_Converters/scripts`

### Workflows & docs

Automation workflows, notebooks, and usage context around the conversion pipeline.

- [n8n flows](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_n8n_Workflows&Pipelines): workflow pipelines · JSON workflows orchestrating conversion, validation, AI enrichment, and reporting. · `DDC_n8n_Workflows&Pipelines`
- [Python notebooks](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/DDC_in_additon/DDC_python_pipelines): analysis pipelines · Notebook examples for single-file, batch, analytics, and report-oriented processing. · `DDC_in_additon/DDC_python_pipelines`
- [Docs](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/AI_AGENTS_INSTRUCTIONS): usage docs · Readmes, book material, license text, and agent instructions that contextualize the toolchain. · `AI_AGENTS_INSTRUCTIONS`

### Samples

Representative input projects used to exercise the converters and workflows.

- [Samples](https://github.com/datadrivenconstruction/cad2data-revit-ifc-dwg-dgn/tree/main/Sample_Projects): input projects · Representative Revit, IFC, and DWG files used as example inputs. · `Sample_Projects`

### Other components

- **Repo**: distribution hub · Top-level repository combining packaged converters, automation, and analytics services.
- **Normalized data**: tabular interchange · Structured Excel-centered output used as the canonical handoff between conversion and downstream workflows.
- **CWICR lookup**: semantic search layer · Multilingual work-item matching, pricing, and resource decomposition over CWICR and Qdrant.
- **Analytics store**: persistent datastore · Persistent tables and indexes behind dashboard aggregation and geographic reporting.

## Connections

- Repo → Revit: ships · Repository distributes the Revit converter bundle.
- Repo → Revit→IFC: ships · Repository distributes the Revit-to-IFC bundle.
- Repo → IFC: ships · Repository distributes the IFC bundle.
- Repo → DWG: ships · Repository distributes the DWG bundle.
- Repo → DGN: ships · Repository distributes the DGN bundle.
- Repo → Revit Excel: ships · Repository distributes the Revit-from-Excel plugin packages.
- Samples → Revit: tests · Sample Revit files exercise the Revit converter.
- Samples → IFC: tests · Sample IFC files exercise the IFC converter.
- Samples → DWG: tests · Sample DWG files exercise the DWG converter.
- Samples → Revit→IFC: tests · Sample Revit files exercise the Revit-to-IFC flow.
- Revit → Normalized data: exports · Produces structured tabular outputs from Revit models.
- Revit→IFC → Normalized data: exports · Produces IFC-oriented structured outputs.
- IFC → Normalized data: exports · Produces normalized data from IFC inputs.
- DWG → Normalized data: exports · Produces normalized data from DWG inputs.
- DGN → Normalized data: exports · Produces normalized data from DGN inputs.
- Normalized data → n8n flows: feeds · Excel-centered outputs are consumed by orchestration workflows.
- Normalized data → Python notebooks: feeds · Notebook pipelines consume structured conversion outputs.
- n8n flows → CWICR lookup: calls · Classification, pricing, and carbon workflows query semantic matching.
- CWICR lookup → Qdrant: indexes · Vector search layer relies on Qdrant for retrieval.
- CWICR lookup → ddc-search: exposes · CLI package provides local search access to the semantic subsystem.
- n8n flows → Dashboard: publishes · Workflow outputs can be surfaced through analytics dashboards and reporting.
- Worker → Analytics store: queries · Worker reads and aggregates persistent analytics records.
- Dashboard → Worker: requests · Dashboard API endpoints are served by the worker backend.
- Deploy scripts → ddc-search: packages · Build scripts produce Debian-style CLI packages.
- Deploy scripts → Qdrant: packages · Build scripts package the Qdrant service and config.
- Deploy scripts → Worker: deploys · Deployment scripts publish the worker service.
- Docs → n8n flows: documents · Instructions and readmes describe workflow usage and agent context.
- Docs → ddc-search: documents · Docs explain command-line use and operational setup.
- Docs → Revit: documents · Docs explain the Windows converter bundle usage.
- Docs → Dashboard: documents · Docs describe dashboard and analytics usage.
