sw-dfm-proto
Skill1 starsChanged 2 months agoMITView on GitHub
3D 打印手板结构设计 DFM 分支技能(EVT/原型验证约束):FDM/SLA/SLS/MJF 的最小壁厚/最小特征/悬空角/ 配合间隙/孔径/螺纹/排液孔/拆件打印的量化规则库 + dfm_check.py 自动体检。当用户提到 3D 打印、手板、 样件、原型、FDM、SLA、打印验证、EVT、打印支撑、悬空、层纹,或要求"打印前检查模型"、"手板能不能打"时使用。 与母技能 solidworks-automation(SolidWorks 配方建模)配合:规则输出作为建模配方参数约束。
In this repository2 other files it gives its agents.
- solidworks-automationSkill
- sw-dfm-injectionSkill
The file
Files
sw-dfm-proto · 3D 打印手板结构设计 DFM 分支
角色:手板/原型结构审查。目标是一次打印成功:打印前把模型参数过一遍规则库,消灭层纹断裂、配合卡死、大量支撑三大翻车点。原型件结构逻辑复刻量产件(同拔模/同圆角/同卡扣),验证通过即可过渡开模(量产约束见姊妹分支 sw-dfm-injection)。
知识来源
- 《产品结构设计规范》§九 及通用条目
- 嘉立创 3D 打印设计规范公开数值惯例(配合间隙/公差/排液孔/最小螺纹等,数值引用并注明来源)
- 规则库:
rules/dfm_proto.json(14 条规则)
工作流
- 打印前体检:
python dfm_check.py --design design.json --process proto(模板用--template) - 建模约束:规则作为 solidworks-automation 配方参数下限——壁厚 ≥1.2、特征 ≥0.8、FDM 配合间隙 ≥0.5、掏空件排液孔 ≥2.5
- 配方级 lint:
python dfm_check.py --recipe my.json --process proto——对 sw_bridge 配方做有限识别(首特征壁厚提示/圆角下限/小孔提示) - 出单:打印取向建议(减少 >45° 悬空)、拆件打印方案
核心规则速查(完整版见规则库 JSON)
| 结构 | 量化规则 | 关键原因 |
| 壁厚 | ≥1.2mm,厚区挖空(≤3mm) | 防翘曲/层间剥离 |
| 最小特征 | ≥0.8mm | FDM 挤出宽度限制 |
| 悬空角 | >45° 加支撑;设计期减少支撑面 | 免支撑/省后处理 |
| FDM 配合间隙 | ≥0.5mm(SLA/MJF 可 0.2) | 层厚误差防卡死 |
| 活动件间隙 | 0.5–1.0mm | 活动顺畅 |
| 最小孔径 | FDM ≈2mm;打印螺纹最小 M6(小螺纹走自攻+底孔) | 孔径收缩 |
| 排液孔 | 掏空件 ≥2.5mm | 粉末/树脂排出 |
| 卡扣 | 悬臂 0.8–1.2mm,根部大圆角 | 防层纹断裂 |
| 螺丝柱 | 必须连壳体,独立 Boss 打印易断 | 强度 |
与注塑分支的双工艺取舍(重要)
同一零件注塑与 FDM 的规则可能冲突,典型是装配间隙:注塑要求 0.15–0.25mm,FDM 要求 ≥0.5mm。 处理原则:结构逻辑一套,功能间隙分档——量产件按注塑间隙设计;手板打印时在配合面局部放大间隙 (或打印后手工修配),并在参数表里注明"手板特调",勿为打印改量产结构。
边界(诚实声明)
- 厂商具体工艺能力(材料/精度/最小特征)以下单页实时参数为准,规则库数值是通用惯例
- 本分支做参数级检查,不做几何级分析(悬空面检测可用 text-to-cad 生态的 dfam-check 技能对 STL 复查)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

