科研 Skill

手绘草图重建CAD模型

sketch-to-cad

Reconstructs a dimensioned parametric CAD model from a hand sketch, photo, or drawing scan, inferring missing dimensions with confidence scores. Use when the user uploads an image of a part to model.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Sketch / Photo / Video → CAD

Pairs with parametric-part-cad, which builds and exports the final model.

Workflow

  1. Ingest.
    • Images: view each one. For video, pull frames at viewpoint changes: ffmpeg -i in.mp4 -vf "select='gt(scene,0.25)'" -vsync vfr frames/f_%03d.png, and keep 6–12 frames that cover the main views.
    • Classify each view: front, side, top, isometric, or oblique. Note perspective distortion. Orthographic sketches are the easiest case.
  2. Establish scale. Use, in order of preference: a dimension written on the sketch, then a known-size object in frame (references/scale_refs.md), then a standard part on the object (bolt head, bearing, USB-C port), then a user-supplied overall size. If none exists, ask for one overall dimension. Don't guess absolute scale.
  3. Feature decomposition. List features in build order: base prism or revolve → bosses and ribs → pockets and holes → patterns → fillets and chamfers. Identify symmetry and patterns explicitly (they cut the number of unknowns).
  4. Dimension table. For every parameter, record: value, unit, source (annotated / measured px→mm / standard part / assumed), and confidence (high / medium / low). For pixel measurements, measure along the axis least affected by perspective, and give ±% uncertainty. Round to sensible design values: whole mm, standard hole sizes, and standard thicknesses.
  5. Build with the parametric-part-cad workflow, keeping each dimension a named parameter.
  6. Verify by overlay. Render the model from the same viewpoint as the source (CadQuery SVG with a matching projectionDir), then compare silhouettes side by side. List any mismatches and fix the parameters. Two iterations is usually enough.
  7. Deliver: STEP/STL, the parameter script, the dimension table with confidence, and a "please confirm" list of the 3–5 low-confidence dimensions that matter most.

Multi-part products

Break the product into an assembly tree first: a subassembly → part list with interfaces. Model the interfaces (mating faces, shafts, fastener patterns) at high confidence before cosmetic surfaces. For vehicles and products filmed in motion, use rotating or turntable segments for proportions and close-ups for details.

示例提示词

帮我把这张零件手绘草图重建成带尺寸标注的参数化CAD模型。

所属插件

机械设计与先进制造面向机械设计与制造研究:文本/草图生成 CAD、FreeCAD/SolidWorks 参数化建模、机构综合与零件选型、公差与 GD&T、DFM 与设计评审、快速有限元与应力代理模型、增材制造工艺与缺陷预测、疲劳断裂寿命。

安装该插件会一并获得同领域的 35 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

手绘草图重建CAD模型能做什么?

Reconstructs a dimensioned parametric CAD model from a hand sketch, photo, or drawing scan, inferring missing dimensions with confidence scores. Use when the user uploads an image of a part to model。

如何安装手绘草图重建CAD模型?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「手绘草图重建CAD模型」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

手绘草图重建CAD模型需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

手绘草图重建CAD模型经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。