solidcraft README

The project's README from github.com/tangency-labs/solidcraft. As one markdown file: README.md.

SolidCraft

An open-source parametric 3D CAD application built in pure Rust.

Sketch, constrain, and build solids with a parametric feature timeline. Change a dimension and watch your model rebuild. Run it on your desktop, in your browser, or let AI agents model through the built-in MCP server.

SolidCraft 0.8: model a Raspberry Pi 4 case from an empty design: a sketch dimensioned with parameters, extrude, fillets and shell, a rim rounded in one pick, standoffs patterned on the board's mounting holes, port cut-outs, vent slots,

A Raspberry Pi 4 case from an empty design: a sketch dimensioned with the board's parameters, extrude, fillet, shell, the rim rounded in one pick, an M2.5 standoff patterned on the 58 × 49 mm hole rectangle, port cut-outs, vent slots, "Pi 4" engraved in DejaVu Sans Bold and a PETG material defined in the design, with its mass in Properties, then height 24 → 32 mm in Parameters and it all rebuilds. 9× playback. Full video, recorded with the demo script.

Download

Download for Windows Download for macOS Download for Linux Get it from the Snap Store Try it in your browser

The downloads aren't signed yet. On Windows, if SmartScreen warns you, choose More info, then Run anyway. On macOS, the first time, right-click SolidCraft in Applications and choose Open.

Older versions, checksums and other formats are on the releases page. Install details, upgrading from earlier builds and building from source are in Getting started.

Documentation: the SolidCraft book (user guide, developer guide and command reference; sources in docs/book).

Status: early but usable for simple parts. 75 of 76 public reference parts match their analytic or FreeCAD-computed volume, area, centre of mass and bounding box (docs/oracle.md); the other is a tracked bug. These checks do not establish complete geometric or workflow equivalence. The commands SolidCraft has are listed by area in docs/features.md; status and plans are in ROADMAP.md. Open work and known bugs are in GitHub issues, and help is welcome: see CONTRIBUTING.md.

Built with SolidCraft

SELENE, a scientific rover by 0xlillith, assembling itself as the timeline plays through its 3,323 steps in SolidCraft: tub, wheels, electronics, suspension, sampling arm, solar wings, dish and camera turret

SELENE, a scientific rover built entirely through SolidCraft's MCP server by @0xlillith: 3,323 editable timeline steps that rebuild with no errors, replayed here at 2× speed. Full video · download the editable model.

What works

Build and run

cargo run --release -p solidcraft -- --sample          # desktop app with a sample part
cargo run --release -p solidcraft-cli -- commands      # the command registry
cargo run --release -p solidcraft-cli -- run examples/bracket.json --out bracket.step
cargo run --release -p solidcraft-cli -- snapshot examples/bracket.json --out bracket.png
cargo run --release -p solidcraft -- part.step          # open a STEP file as a new design
cargo run --release -p solidcraft-cli -- eval part.step # measure an imported STEP file
cargo xtask ci                                          # fmt, clippy, tests, assets, layers, wasm

Windows builds: cargo xwin build --release --target x86_64-pc-windows-msvc -p solidcraft.

On Windows and Linux, SolidCraft detects a connected 3Dconnexion SpaceNavigator or SpaceMouse through its multi-axis HID interface. Move the cap to pan and zoom, and tilt or twist it to rotate the 3D view. While editing a sketch, the cap pans and zooms without changing the sketch view. The Navigation page in Preferences has an on/off switch and a speed control for the 3D mouse.

On Linux SolidCraft reads /dev/hidrawN directly, so the logged-in user needs access to the device. A udev rule that adds the uaccess tag does that, for example /etc/udev/rules.d/70-3d-mouse.rules for devices with 3Dconnexion's vendor id:

SUBSYSTEM=="hidraw", ATTRS{idVendor}=="256f", TAG+="uaccess"

Older SpaceNavigators use Logitech's vendor id 046d; add a rule with their product id (see lsusb) instead of matching every Logitech device. Reload with sudo udevadm control --reload && sudo udevadm trigger, then replug the device. The Flatpak sandbox does not expose hidraw devices, so the 3D mouse only works with native builds there for now. Devices that send all six axes in HID report 1 (some homemade ones do) are recognised from their report descriptor, so they work as well.

In the browser: cd apps/solidcraft-web && trunk build --release --public-url ./ (WebGPU, or WebGL2 with ?webgl; ?sample opens the sample part).

Scripts

A script is a JSON list of commands, the same ones the UI runs:

{"commands": [
  {"command": "sketch.create", "params": {"plane": "XY"}},
  {"command": "sketch.rectangle.two_point", "params": {"p0": [0, 0], "p1": [40, 30]}},
  {"command": "solid.extrude", "params": {"distance": 20}},
  {"command": "solid.fillet", "params": {"edges": [[0, 0, 10]], "radius": 3}}
]}

AI agents (MCP)

solidcraft-cli mcp is a Model Context Protocol server on stdio. Headless it runs its own design session; with --connect 127.0.0.1:PORT it drives the app started with solidcraft --control PORT, so you can watch the agent model. Tools: list_commands, execute, batch, inspect_design, measure, body_topology, set_parameter, screenshot (returns the image), export, undo, redo, new_design, open, save. Tool calls reach files only in the open design's folder (when it lies inside your home folder, never home itself or a hidden folder), SolidCraft's recovery folder and folders given with --allow-path DIR. Claude Code: claude mcp add solidcraft -- solidcraft-cli mcp. Details, client configuration and an example session: docs/mcp.md.

Architecture

Layer Crates Role
L0 geom vectors, planes, profiles, meshes and their measures
L1 sketch, kernel, render constraint solver and profiles; the B-rep kernel boundary (truck); view math and CPU rasterizer
L2 doc parameters, expressions, the feature timeline and its incremental evaluation
L3 io design files, STL/OBJ/STEP/3MF export, STEP and 3MF/STL import features
L4 engine the session and the command registry (everything is a command)
L5 ui-egui, mcp the swappable desktop front end; the MCP server (headless or bridged to the app)
apps solidcraft, solidcraft-cli desktop app, headless CLI

Contributing

Coming from Autodesk Fusion? SolidCraft uses familiar parametric CAD workflows: constrained sketches, solid features, an editable timeline, parameters and assemblies. See the roadmap for supported operations and current limitations.

See CONTRIBUTING.md: how to build and test, the code map, the clean-room and licence rules, and where help is wanted most.

Licence

MIT OR Apache-2.0, at your option. Developed under the clean-room contribution rules; third-party code and assets retain their documented licences and attribution.

SolidCraft is independent. Behaviour is designed from public documentation, general CAD conventions and user feedback. Reference tests use analytic values and open-source tools. SolidCraft is not affiliated with, sponsored by or endorsed by Autodesk. Autodesk and Fusion are trademarks of Autodesk, Inc.

solidcraft (tangency-labs/solidcraft)

Searching Database…

这是什么?SolidCraft 是一个用纯 Rust 编写的开源参数化 3D CAD 应用:你可以绘制草图、添加约束,然后在特征时间线上构建实体。它可以在桌面或浏览器中运行,也可以通过内置的 MCP 服务器以无界面模式由 AI 智能体来驱动。
它是一个完整的 CAD 应用,还是让我嵌入代码里的程序库?它是一个独立的 CAD 应用,带桌面图形界面(egui + wgpu)、网页版、无界面命令行工具(solidcraft-cli)和 MCP 服务器,并不是程序库。
怎么安装和运行它?下载适合你操作系统的现成安装包——Windows 的 MSI 或便携版 zip、macOS 的 DMG、Linux 的 AppImage/.deb/.rpm/Snap——或者直接在浏览器里试用,完全不用安装。
它能用来做真正的生产零件,还是仍处于早期阶段?它被定位为早期阶段,但已可用于简单零件:76 个公开参考零件中目前有 75 个与预期的解析几何/FreeCAD 几何完全吻合,还有 1 个已记录在案的缺陷,不过这并不保证它的工作流程与成熟的 CAD 工具完全等同。
如果我用惯了 Autodesk Fusion,用起来会顺手吗?会,它有意沿用那套工作流程:带约束的草图、实体特征、可编辑的参数化时间线,以及参数和装配体。
AI 智能体真的能设计出完整的模型,还是说 MCP 只是个演示玩具?它是能应付实际任务的:有一位贡献者完全通过 SolidCraft 的 MCP 服务器,搭建了一台完整的科研月球车(SELENE),包含 3,323 个可编辑的时间线步骤,而且重新构建时没有任何错误。
我可以导入和导出哪些 CAD 文件格式?可以导出为 STEP (AP242)、IGES 5.3、3MF、STL 和 OBJ;可以导入 STEP/IGES 的实体和装配体,以及作为网格体的 3MF/STL/OBJ,还提供一个 Convert Mesh(转换网格)工具,能把受支持的网格形状转换回参数化实体。
怎么把它接入 Claude Code 或其他编程智能体?运行 'claude mcp add solidcraft -- solidcraft-cli mcp' 来注册服务器;它的工具包括 execute、measure、export、screenshot、undo/redo 等等,既可以运行自己的无界面会话,也可以驱动实际运行中的应用,让你能看着智能体建模。
它支持像 SpaceMouse 那样的 3D 鼠标导航吗?支持,在 Windows 和 Linux 上,它通过 HID 直接读取已连接的 3Dconnexion SpaceNavigator/SpaceMouse 设备,实现平移、缩放和旋转,不过在 Flatpak 沙盒版本中这一功能还不可用。
Size
114.2 MB
Stars
3.1K
Age
10d
Commits · 90 Days