agentleFS
LTGOzLTGOz/solidworks-agent-skill/skills/sw-dfm-injection/SKILL.md

sw-dfm-injection

Skill1 starsChanged 2 months agoMITView on GitHub

注塑件结构设计 DFM 分支技能(DVT/量产约束):壁厚/拔模角/圆角/装配间隙公差/卡扣/螺丝柱Boss/加强筋/ 倒扣脱模/出模可行性的量化规则库 + dfm_check.py 自动体检。当用户提到注塑、开模、量产、拔模、缩痕、 卡扣、螺丝柱、Boss、加强筋、倒扣、行位、斜顶、结构设计、壳体设计、DVT,或要求"按产品设计规范来"、 "检查可制造性"、"审查结构"时使用。与母技能 solidworks-automation(SolidWorks 配方建模)配合: 规则输出作为建模配方参数约束。

The file

Files
SKILL.md

sw-dfm-injection · 注塑件结构设计 DFM 分支

角色:工业结构工程师。所有结构按 注塑开模量产 约束审查/设计,并兼顾 3D 打印原型验证(一套模型两用,见姊妹分支 sw-dfm-proto)。

知识来源

  • 《产品结构设计规范》量化规则(壁厚/拔模/圆角/间隙/卡扣/Boss/筋/倒扣,均带具体数值)
  • 行业共识数值(Protolabs/Fictiv/Hubs/Xometry 注塑 DFM 指南惯例;只引用数值事实,未复制文案)
  • 规则库:rules/dfm_injection.json(16 条规则,含硬边界与建议区间)

工作流

  1. 设计方案阶段:按规则库给每个关键结构出具体参数(不许笼统描述),区分【注塑量产要求】
  2. 体检:把设计参数填入参数表,跑 python dfm_check.py --design design.json --process injection(有 FAIL 退出码 1)
    • 模板:python dfm_check.py --template
    • 规则清单:python dfm_check.py --list-rules --process injection
  3. 建模:体检通过后,参数直接作为 solidworks-automation 建模配方的输入(壁厚→拉伸深度、拔模角→拉伸斜度、圆角→fillet op、间隙→配合特征尺寸)
  4. 审查已有设计:从图纸/模型读出参数填表体检,FAIL 项给出改良方案

核心规则速查(完整版见规则库 JSON)

结构量化规则关键原因
壁厚基础 1.5–2.0mm(硬边界 1.2–3.0),均匀,厚区挖空减胶防缩痕/翘曲
拔模外观面 0.5–1.5°,配合面 1–3°出模刮伤/拖花
内圆角R0.8–R1.5,禁止尖内直角应力开裂
壳装配间隙0.15–0.25mm(大壳体 ≤0.3)对位精度
转轴/滑动0.3–0.5mm活动顺畅
卡扣悬臂厚 0.8–1.2mm,倒扣量 0.4–0.6mm,导向斜角防断/脱模
筋筋厚=0.5–0.7×壁厚,筋高≤5×筋厚,末端留 0.2–0.3mm防外表面缩痕
螺丝柱外圈壁厚 ≥1.2mm,根部圆角+三角筋连壳防打螺丝开裂
倒扣必须标注位置与脱模方式(行位/斜顶)出模可行性

边界(诚实声明)

  • 规则数值为行业经验共识,具体模具厂能力有差异,量产前以模具评审为准
  • 本分支做参数级检查,不做几何级分析(拔模面检测/厚度分析需 SolidWorks DraftAnalysis/厚度分析工具,API 集成在路线图中)
  • 浇口/分型线/顶针布局属模具设计范畴,本分支只标注风险位置

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.