How datadrivenconstruction/cad2data-revit-ifc-dwg-dgn works
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 Docs · Sample_Projects Samples · DDC_n8n_Workflows&Pipelines n8n flows · DDC_CONVERTER_REVIT Revit
Components 19
Windows converters
Packaged CAD/BIM conversion bundles for Windows inputs and exports.
- Revit · Windows bundle for extracting and exporting data from Revit projects.
DDC_WINDOWS_Converters/DDC_CONVERTER_REVIT - Revit→IFC · Windows bundle for converting Revit models into IFC-oriented outputs.
DDC_WINDOWS_Converters/DDC_CONVERTER_Revit2IFC/DDC_REVIT2IFC_CONVERTER - IFC · Windows bundle for IFC conversion and extraction.
DDC_WINDOWS_Converters/DDC_CONVERTER_IFC - DWG · Windows bundle for DWG conversion and extraction.
DDC_WINDOWS_Converters/DDC_CONVERTER_DWG - DGN · Windows bundle for DGN conversion and extraction.
DDC_WINDOWS_Converters/DDC_CONVERTER_DGN - Revit Excel · 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 · Debian-packaged CLI for CWICR search and lookup on Linux.
DDC_LINUX_Converters/ddc-cwicr-cli - Qdrant · Packaged vector database and systemd service for semantic matching and retrieval.
DDC_LINUX_Converters/ddc-qdrant - Worker · Cloudflare worker code and SQL migrations powering analytics queries and persistence.
DDC_LINUX_Converters/worker - Dashboard · Cloudflare-style dashboard with API endpoints for summaries, timeseries, geography, and org breakdowns.
DDC_LINUX_Converters/dashboard - Deploy 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 · JSON workflows orchestrating conversion, validation, AI enrichment, and reporting.
DDC_n8n_Workflows&Pipelines - Python notebooks · Notebook examples for single-file, batch, analytics, and report-oriented processing.
DDC_in_additon/DDC_python_pipelines - 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 · Representative Revit, IFC, and DWG files used as example inputs.
Sample_Projects
Other components
- Repo · Top-level repository combining packaged converters, automation, and analytics services.
- Normalized data · Structured Excel-centered output used as the canonical handoff between conversion and downstream workflows.
- CWICR lookup · Multilingual work-item matching, pricing, and resource decomposition over CWICR and Qdrant.
- Analytics store · Persistent tables and indexes behind dashboard aggregation and geographic reporting.
Connections 30
- 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.