文本到CAD
Text-to-CAD

原始链接: https://github.com/earthtojake/text-to-cad

## 文本到CAD:摘要 这个项目,`text-to-cad`,是一个本地工具,用于使用像Codex和Claude Code这样的编码代理生成和操作CAD模型。它允许用户**描述**所需零件或组件,让代理**编辑**源文件,然后**重新生成**标准CAD格式(STEP、STL、3MF、DXF、GLB)和机器人描述(URDF)。 主要功能包括一个内置的**CAD浏览器**用于视觉检查,一个**引用系统**(`@cad[...]`)用于精确编辑,以及用于使用ROS 2/MoveIt进行**机器人运动**规划的工具。 该系统设计为**本地优先**,无需后端托管。它利用基于技能的架构,具有专门用于CAD、URDF生成和机器人运动的技能,所有这些都通过Python虚拟环境和Node.js进行管理,用于CAD浏览器。安装涉及克隆仓库、设置Python依赖项以及运行CAD浏览器。

## 文本到CAD工具总结 一个新开源项目 ([github.com/earthtojake](https://github.com/earthtojake)) 旨在弥合大型语言模型 (LLM) 和 CAD 软件之间的差距。该工具基于 `build123d` 库(使用 Open Cascade 内核)构建,允许像 GPT-5.5 和 Claude Opus 4.7 这样的 LLM 直接生成和检查 STEP 文件。 用户报告了令人鼓舞的结果,尤其是在原型设计方面,但强调需要手动检查和完善。挑战包括 LLM 较弱的空间推理能力、高 token 使用量以及方向上偶尔出现的不一致性。作者正在积极开发基准测试并欢迎贡献,最初开发该工具是为了辅助设计一个 7DOF 机械臂。 讨论强调了 LLM 在复杂装配设计和参数化方面的潜力,同时也承认专业的 CAD 工作流程需要比当前工具提供的更深入的工程需求理解。还提到了几个相关项目,包括 [https://zoo.dev/](https://zoo.dev/) 和 [https://github.com/brookstalley/cordyceps](https://github.com/brookstalley/cordyceps)。
相关文章

原文
  • Generate - Create source-controlled CAD models with coding agents like Codex and Claude Code.
  • Export - Produce STEP, STL, 3MF, DXF, GLB, topology data, and URDF robot descriptions.
  • Browse - Inspect generated geometry in CAD Explorer.
  • Reference - Copy stable @cad[...] references so agents can make precise follow-up edits.
  • Review - Render quick snapshots for fast checks during an iteration loop.
  • Reproduce - Edit source files first, then regenerate explicit targets.
  • Local - Run the harness and CAD Explorer locally with no backend to host.

This harness vendors file-targeted skills for CAD, robot-description, robot-motion, and manufacturing-preflight work. Use the bundled copies here for local CAD projects, or use the dedicated repositories when installing the skills outside this harness.

  • CAD Skill - STEP, STL, 3MF, DXF, GLB/topology, snapshots, and @cad[...] geometry references. Bundled docs · Standalone repo
  • URDF Skill - Generated URDF XML, robot links, joints, limits, validation, and mesh references. Bundled docs · Standalone repo
  • Robot Motion Skill - ROS 2/MoveIt setup, CAD Explorer motion artifacts, inverse kinematics, path planning, and motion-server testing for existing URDFs. Bundled docs

Skills live canonically under .agents/skills for Codex. Claude Code compatibility is provided by per-skill symlinks in .claude/skills.

  1. Describe - Tell your agent about the part, assembly, fixture, robot, or mechanism you want.
  2. Edit - Let your coding agent update repo-local CAD source files.
  3. Regenerate - Create explicit STEP, STL, 3MF, DXF, GLB, or URDF targets.
  4. Inspect - Open CAD Explorer to review the generated model.
  5. Reference - Copy @cad[...] handles when you want geometry-aware edits.
  6. Commit - Save the source and generated artifacts together once the model is ready.

Clone the repo:

git clone https://github.com/earthtojake/text-to-cad.git
cd text-to-cad

Install Python CAD dependencies:

python3.11 -m venv .venv
./.venv/bin/python -m pip install --upgrade pip
./.venv/bin/pip install -r .agents/skills/cad/requirements.txt

Install other bundled skill requirements only when you need those workflows:

./.venv/bin/pip install -r .agents/skills/urdf/requirements.txt

Install CAD Explorer dependencies:

npm --prefix .agents/skills/cad/explorer install

Run the local CAD Explorer from the project directory you want to scan:

npm --prefix .agents/skills/cad/explorer run dev:ensure

Then open http://localhost:4178.

联系我们 contact @ memedata.com