# Repository Briefing: datadrivenconstruction/OpenConstructionDesign
> Source: https://repoforai.com/repo/datadrivenconstruction/OpenConstructionDesign (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/datadrivenconstruction/OpenConstructionDesign
- **Official Docs / Website**: https://openconstructiondesign.com
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Rust
- **License**: AGPL-3.0
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v1.6.2 (2026-12-03) — https://github.com/datadrivenconstruction/OpenConstructionDesign/releases
- **Review Snapshot**: 2026-12-03 (Note: v1.6.2 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Self-Hosted, Local AI, MCP, CLI
- **Momentum**: 119 ★ total (+10 24h / +48 7d) · 23 forks
- **Topics**: `aec`, `ai-agents`, `architecture`, `bim`, `cad`, `cad-bim`, `construction`, `egui`, `engineering`, `generative-design`, `hvac`, `ifc`
- **When to Use**: Best for: AEC teams piloting AI-assisted concept design, repeatable model generation, or IFC and ERP revision handoffs with a designer approving edits. Skip if: You require unattended model edits, high-fidelity native DWG or RVT exchange, structural analysis inside the editor, or proven performance on very large models.

## Overview
```text
### Architecture & Core Mechanics
OpenConstructionDesign is a Rust CAD-BIM editor with separate workspace crates for the model, geometry, I/O, rendering, UI, AI, operations, generation, scripting, ERP integration and browser editor. Its own geometry kernel supports B-rep solids, CSG, NURBS and sketch constraints. The manifest specifies `rusqlite` 0.41 with bundled SQLite and `web-time` for desktop and browser builds. A local SQLite project file stores the model and an authored edit journal, supporting undo, redo and revision comparison.

The AI path separates proposing an edit from committing it. The editor stages the plan on a scratch copy, runs model checks and highlights proposed changes and added quantities. The user can deselect items or adjust values before applying the plan as one undoable edit. Built-in chat connects via chat-completions or messages APIs; external clients use the opt-in HTTP MCP server on `127.0.0.1:47621`, which can stage additions and request approval but cannot Apply. Lua provides a separate scripting path, while an optional RVT bridge is distributed outside the core editor and uses a published protocol.

### Key Capabilities & Differentiators
The plan and 3D views edit the same BIM elements, from layered walls and rooms to stairs, parametric families and building services. Sections, schedules and sheets derive from the model, with vector PDF and SVG output. IFC import spans IFC2X3 through IFC4X3, including `.ifczip`; export covers IFC2X3, IFC4 and IFC4.3. Ducts, pipes and cable carriers export as typed IFC entities rather than generic volumes. The assistant can use an automatically detected local server on port 11434 or a compatible cloud or custom endpoint.

`ddc gen` builds a model from a structured JSON brief, while Lua handles repeatable forms such as vaulted roofs and diagrids. The release 0.10 housing example generated 10,274 elements, including 4,521 MEP runs, in seven minutes on one laptop. That is an example run, not a current benchmark or validation result: the sample reported zero audit errors but still had 30 unconnected kitchen taps. For downstream use, `ddc publish` packages quantities, a revision diff, sheets, IFC4 and `elements.parquet`; OpenConstructionERP matches stable element keys to update estimates, 4D scheduling and procurement.

### Trade-offs & Limitations
Compared with a conventional desktop BIM workflow, the advantage is reviewable model changes from chat or an agent, plus reproducible generation from JSON or Lua. The cost is a review step rather than unattended editing. Local inference keeps model requests on the workstation but competes with CAD rendering for resources, and small models are limited to simpler requests. A compatible cloud provider shifts inference off the workstation, but introduces provider charges and sends the context included in requests outside the machine.

Do not treat IFC support as proof of lossless interchange. The independent DWG/DXF decoders cover common geometry and building elements, not all source features; the RVT bridge is separate, and the structural solver is not exposed in the editor. Very large models can be slow, and the project format, APIs and UI can change across releases. Keep source files and IFC archives, and test representative models before migrating production work. AGPL-3.0 permits commercial use but requires planning for source obligations when distributing covered software or offering remote interaction with a modified version.

### Hardware & Deployment Guide
Release v1.6.1 provides Windows and Linux desktop/CLI archives; the editor is `ddc-app` and the CLI is `ddc`. Windows 10/11 x64 runs the extracted executable without an account; the build is unsigned, and `--safe-graphics` is available for rendering issues. Linux x64 targets glibc 2.35 with X11 or Wayland, including Ubuntu 22.04+ and Debian 12+. The Apple silicon and Intel macOS archives are unsigned CI-built betas without on-Mac testing, so validate them before rolling out to a team.

Source builds require Rust 1.89+, with MSVC build tools on Windows. Use `cargo build --release -p ddc-cli --features link` to include `ddc gen` and `ddc publish`; release binaries have included them since v1.4.0. Desktop editing and file-based ERP exchange can run offline; local AI requires a separate model server, while cloud AI needs a compatible endpoint and key stored in the OS credential store. The separate v1.6.0-web.1 browser build is installed by OpenConstructionERP; the hosted demo requires email registration.
```

## Key Capabilities
```text
- Edit control: AI plans are checked on a scratch model, previewed with added quantities and committed as one undoable edit.
- Agent interface: MCP is off by default, binds to loopback and uses a revocable token; clients can request but not perform Apply.
- Local persistence: A single SQLite project file holds the model and its journal, including authorship and revision comparisons.
- Interoperability: IFC2X3 through IFC4X3 import, IFC2X3/IFC4/IFC4.3 export, and typed IFC entities for MEP runs.
- Repeatable generation: `ddc gen` consumes a `ddc-brief/1` JSON brief; Lua recipes cover parametric forms such as vaults and diagrids.
- ERP handoff: `ddc publish` packages `elements.parquet`, quantities, revision diffs, sheets and IFC4, with stable keys for matching.
```

## Quick Start / Clone
```bash
git clone https://github.com/datadrivenconstruction/OpenConstructionDesign.git
cd OpenConstructionDesign
cargo build --release -p ddc-app -p ddc-cli
cargo run --release -p ddc-app
```
