二级减速器 · 有头创建工具 教学中心教学控制台图文教案

在真实界面里造一台二级减速器

23 个零件,104 个界面步骤,一步一步点出来;最后装配成整机。每一步都是真实浏览器里的操作,建完由界面算出的体积与构建记录逐件对照。

先做三件事

  1. 构建前端:cd web && npx vite build(改过 web/src 之后必做)。
  2. 检查环境:node tools/reducer/create-part.mjs P01 --dry —— 只看前置,不启动浏览器。
  3. 建第一个零件:下面任意一张卡片里的命令,或直接打开教学控制台点「开始」。

有头运行需要图形环境(DISPLAY=:1)与 Chrome。所有证据落在 docs/current/reducer-toolkit/runs/,截图落在 web/tools/reducer-parts-course/ui-stills/。

判定怎么读:通过 = 每一步都点到、最终体积与记录一致;产品失败(exit 1)= 界面建出的体积不对;前置失败(exit 2)= dist/内核/Chrome/DISPLAY/步骤文件缺失,此时还没开始点,不算产品问题。

齿轮 2 件

P01 · 一级大齿轮 80 齿

4 步
Gear2_80T · 记录体积 1,374,346 mm³
  1. gear profile齿轮轮廓(渐开线参数)
  2. pad拉伸成实体
  3. cut profile挖切轮廓
  4. cut挖切
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P01

P02 · 二级大齿轮 100 齿

4 步
Gear4_100T · 记录体积 3,238,340 mm³
  1. gear profile齿轮轮廓(渐开线参数)
  2. pad拉伸成实体
  3. cut profile挖切轮廓
  4. cut挖切
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P02

轴 3 件

P03 · 输入轴(带 20 齿小齿轮)

4 步
Shaft_input · 记录体积 381,626 mm³
  1. Gear1_20T involuteGear1_20T 渐开线齿廓
  2. Gear1_20T blankGear1_20T 毛坯
  3. shaft profile轴的外形轮廓
  4. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P03

P04 · 中间轴(双联,带 20 齿小齿轮 + 键槽)

6 步
Shaft_intermediate · 记录体积 522,631 mm³
  1. Gear3_20T involuteGear3_20T 渐开线齿廓
  2. Gear3_20T blankGear3_20T 毛坯
  3. shaft profile轴的外形轮廓
  4. revolution旋转成轴
  5. Gear2_80T keyseat profileGear2_80T keyseat 草图
  6. Gear2_80T keyseatGear2_80T 键槽
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P04

P05 · 输出轴(带键槽,72.5 rpm)

4 步
Shaft_output · 记录体积 823,602 mm³
  1. shaft profile轴的外形轮廓
  2. revolution旋转成轴
  3. Gear4_100T keyseat profileGear4_100T keyseat 草图
  4. Gear4_100T keyseatGear4_100T 键槽
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P05

轴承 9 件

P06 · 6206 轴承内圈

2 步
Bearing6206_Inner · 记录体积 6,994 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P06

P07 · 6206 轴承外圈

2 步
Bearing6206_Outer · 记录体积 11,855 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P07

P08 · 6206 轴承滚珠(9 粒圆周阵列)

2 步
Bearing6206_Balls · 记录体积 4,040 mm³
  1. ballball
  2. ball patternball pattern
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P08

P09 · 6209 轴承内圈

2 步
Bearing6209_Inner · 记录体积 13,950 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P09

P10 · 6209 轴承外圈

2 步
Bearing6209_Outer · 记录体积 22,471 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P10

P11 · 6209 轴承滚珠

2 步
Bearing6209_Balls · 记录体积 10,725 mm³
  1. ballball
  2. ball patternball pattern
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P11

P12 · 6211 轴承内圈

2 步
Bearing6211_Inner · 记录体积 17,782 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P12

P13 · 6211 轴承外圈

2 步
Bearing6211_Outer · 记录体积 28,400 mm³
  1. profile轮廓草图
  2. revolution旋转成轴
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P13

P14 · 6211 轴承滚珠

2 步
Bearing6211_Balls · 记录体积 21,047 mm³
  1. ballball
  2. ball patternball pattern
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P14

平键 2 件

P15 · 中间轴平键(80 齿齿轮用)

2 步
Key_intermediate_Gear2_80T · 记录体积 4,293 mm³
  1. key profilekey 草图
  2. key padkey pad
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P15

P16 · 输出轴平键(100 齿齿轮用)

2 步
Key_output_Gear4_100T · 记录体积 8,617 mm³
  1. key profilekey 草图
  2. key padkey pad
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P16

骨架油封 3 件

P17 · 输入轴骨架油封

2 步
Seal_input · 记录体积 6,590 mm³
  1. seal profileseal 草图
  2. seal revolutionseal revolution
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P17

P18 · 中间轴骨架油封

2 步
Seal_intermediate · 记录体积 11,832 mm³
  1. seal profileseal 草图
  2. seal revolutionseal revolution
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P18

P19 · 输出轴骨架油封

2 步
Seal_output · 记录体积 15,635 mm³
  1. seal profileseal 草图
  2. seal revolutionseal revolution
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P19

联轴器 1 件

P20 · 输入联轴器(轮毂 + 法兰 + 内孔 + 螺栓孔)

8 步
Coupling_input · 记录体积 68,247 mm³
  1. hub profile轮毂轮廓
  2. hub轮毂
  3. flange profile法兰轮廓
  4. flange法兰
  5. bore profile轴承孔轮廓
  6. bore内孔
  7. bolt profile螺栓孔轮廓
  8. bolt pocket螺栓沉孔
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P20

箱体与箱盖 3 件

P21 · 剖分式下箱体(16 步)

16 步
HousingBase · 记录体积 4,887,641 mm³
  1. outer profile外形轮廓
  2. outer pad外壳拉伸
  3. CavityBossLeft profileCavityBossLeft 草图
  4. CavityBossLeftCavityBossLeft
  5. CavityMiddle profileCavityMiddle 草图
  6. CavityMiddleCavityMiddle
  7. CavityBossRight profileCavityBossRight 草图
  8. CavityBossRightCavityBossRight
  9. bore profile轴承孔轮廓
  10. bores镗轴承孔
  11. seal bore Nearseal bore Near
  12. seal bores Nearseal bores Near
  13. seal bore Farseal bore Far
  14. seal bores Farseal bores Far
  15. bolt profile螺栓孔轮廓
  16. boltsbolts
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P21

P22 · 上箱盖(26 步,含观察孔与吊耳)

26 步
HousingCover · 记录体积 4,418,502 mm³
  1. outer profile外形轮廓
  2. outer pad外壳拉伸
  3. CoverCavityBossLeft profileCoverCavityBossLeft 草图
  4. CoverCavityBossLeftCoverCavityBossLeft
  5. CoverCavityMiddle profileCoverCavityMiddle 草图
  6. CoverCavityMiddleCoverCavityMiddle
  7. CoverCavityBossRight profileCoverCavityBossRight 草图
  8. CoverCavityBossRightCoverCavityBossRight
  9. bore profile轴承孔轮廓
  10. bores镗轴承孔
  11. seal bore Nearseal bore Near
  12. seal bores Nearseal bores Near
  13. seal bore Farseal bore Far
  14. seal bores Farseal bores Far
  15. inspection profile观察孔轮廓
  16. inspection opening开观察孔
  17. inspection bolt profileinspection bolt 草图
  18. inspection boltsinspection bolts
  19. breather profilebreather 草图
  20. breather seatbreather seat
  21. LiftBossA profileLiftBossA 草图
  22. LiftBossALiftBossA
  23. LiftBossB profileLiftBossB 草图
  24. LiftBossBLiftBossB
  25. lifting profile吊耳轮廓
  26. lifting threads吊耳螺纹孔
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P22

P23 · 观察孔盖板

4 步
InspectionPlate · 记录体积 149,854 mm³
  1. plate profileplate 草图
  2. plateplate
  3. plate holes profileplate holes 草图
  4. plate holesplate holes
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-part.mjs P23

装配 1 台

SecondaryReducer · 23 件合成整机

插入链接
新建装配文档,按构建记录的位置与旋转逐个插入并接地;插入数与期望比对。
cd "/media/mes123456/Elements SE/WebFreeCAD/FreeCADWasmDev/working/FreeCAD" && DISPLAY=:1 node tools/reducer/create-assembly.mjs

这套工具本身

命令作用
node tools/reducer/list.mjs列出 23 个零件、分组、步数与体积
node tools/reducer/create-part.mjs P06有头重建一个零件(P 编号或 Document 名都行)
node tools/reducer/create-part.mjs P06 --dry只做前置检查,不启动浏览器
node tools/reducer/create-part.mjs P06 --slow放慢点击,适合边看边学
node tools/reducer/create-all.mjs --group bearings按组串行重建
node tools/reducer/create-all.mjs --all --keep-going全部 23 件,出错继续
node tools/reducer/create-assembly.mjs真实界面装配
node tools/reducer/self-test.mjs无浏览器自测(目录、分组、参数校验、前置)

工具只做编排与前置检查;每一步的点击由共享引擎 web/tools/cad-ui-rebuild/ 执行,构建记录来自 web/teaching/cases/secondary-reducer-pro/out/replay/,界面步骤来自 web/tools/reducer-parts-course/out/ui-steps/。

常见问题

现象原因与处理
退出码 2,日志里有「前置缺失」dist、内核产物、Chrome、DISPLAY 或步骤文件缺失。照提示修,或用 --dry 看全部检查项。
退出码 1,体积不一致界面建出的几何与构建记录不同,是产品回归;报告里给出两边体积与相对误差。
看不到浏览器窗口有头需要可用的 X 显示;在带图形界面的会话里用 DISPLAY=:1 启动。
页面打开是空白/旧版本先 cd web && npx vite build,工具会自动为构建好的 dist 起临时服务。

本页由 web/tools/teaching-console/build-reducer-page.mjs 生成,请勿手改。