diff --git a/web/manual/CONTINUATION.md b/web/manual/CONTINUATION.md index 3a561453..bd1e6fe0 100644 --- a/web/manual/CONTINUATION.md +++ b/web/manual/CONTINUATION.md @@ -38,30 +38,33 @@ 新建文档 → Body → 创建草图 → 矩形 → Pad Length=10 → 创建 Pad。 - 记录边界:项目页 Part 文档切 PartDesign 需要 ownership handoff,教程改用独立 `partdesign.html`。 -- 手册当前 4 章、16 张图、1602 条命令;桌面/移动 0 错误、0 破图、0 溢出。 +- **全部章节完成**:第 0–14 章(15 章)+ 自动附录命令索引,共 33 张真实截图。 + - 第 0 章 Start/文件工具;第 5 章 Assembly 创建+2 条链接;第 6 章 Spreadsheet; + 第 7 章导入导出;第 8–12 章 Mesh/BIM/CAM/TechDraw/FEM;第 13 章 OpenSCAD/Robot/Plot; + 第 14 章 27 件 GLB 产线案例。 + - 专章边界如实标注:TechDraw 跨 Worker、FEM 原生结果、CAM OpenCAMLib、 + Mesh/BIM 模块页 boundary、glTF 原生导入导出。 + - 最终页面检查:15 章 / 33 图 / 1602 命令 / 1736 搜索项; + 桌面与移动 0 错误、0 破图、0 横向溢出。 + - `manual/data/final-status.json` 记录完成状态。 ## 真实残余 -- 第 0、3–15 章正文与截图未开始(第 1、2 章已完成)。 -- 边界只按精确命令匹配 3 条;需补 Fem/CAM/Cloud/Import 的模块级边界与桌面入口。 -- 已验证状态(verified)尚未接入:当前 status 只有 detailed/overview/boundary; - 截图断言通过后需回写矩阵与徽章。 -- 第 1 章 `04-properties` 等图片为元素截图;后续章需统一全页 + 裁图规范。 -- 命令索引 1602 行使 HTML 约 750 KB;后续章节图片外链,需持续监控体积。 -- 未提交/推送;建议分支 `web-manual-20261113`。 +- `verified` 状态尚未回写:矩阵仍为 detailed/overview/boundary;截图与断言证据在 + `manual/data/capture/`,可在后续把有截图的章节升级为 verified。 +- 部分专业工作台(Mesh/BIM/TechDraw/FEM)截图来自模块页,展示命令清单与边界, + 不是完整任务工作流;正文已明确说明。 +- 命令索引 1602 行使 HTML 约 890 KB;图片外链,未嵌入。 +- 第 3 章草图编辑器位于属性栏的布局边界仍在;可用 React 移到主舞台。 +- 所有改动已提交/推送分支 `web-manual-20261113`。 ## 下一步精确入口 -1. 第 5 章 Assembly:`content/ch05-assembly.md` + `scenarios/ch05-assembly.json`; - 覆盖 Create/InsertLink、Ground、Joint、Solve、Exploded/BOM; - 再补第 0 章启动/OPFS 导读。 -2. 边界补录:`generate-features.mjs` 的 `boundaries` 增加 - Fem 原生对象、CAM 其余受限命令、Import_Gltf、Cloud、Material; - 同步 `web/docs/current/web-freecad-manual-gaps.md`。 -3. verified 回写:capture 成功后按 `chapter/workflow` 将截图与断言写回 - `manual-features.json` 的 `screenshots[]` 与 `commands[].status`。 -4. 每章完成:`npm run manual:features` → capture → `npm run build:manual` → - `npm run check:manual` → 更新本文件。 +1. 可选:把 capture 成功的章节回写为 `verified`,并补 `manual-gaps` 文档。 +2. 可选:用 React 把草图编辑器移到主舞台,修复第 3 章布局边界。 +3. 可选:补 Mesh/BIM/TechDraw/FEM 的完整任务截图,替换模块页截图。 +4. 复现命令:`npm run manual:features` → capture → `npm run build:manual` → + `npm run check:manual`。 ## 关键路径 diff --git a/web/manual/assets/ch00/start-opfs/01-start-dialog.png b/web/manual/assets/ch00/start-opfs/01-start-dialog.png new file mode 100644 index 00000000..a3333694 Binary files /dev/null and b/web/manual/assets/ch00/start-opfs/01-start-dialog.png differ diff --git a/web/manual/assets/ch00/start-opfs/02-file-tools.png b/web/manual/assets/ch00/start-opfs/02-file-tools.png new file mode 100644 index 00000000..de27a499 Binary files /dev/null and b/web/manual/assets/ch00/start-opfs/02-file-tools.png differ diff --git a/web/manual/assets/ch05/assembly-create-insert/01-create-assembly.png b/web/manual/assets/ch05/assembly-create-insert/01-create-assembly.png new file mode 100644 index 00000000..ed90a1fa Binary files /dev/null and b/web/manual/assets/ch05/assembly-create-insert/01-create-assembly.png differ diff --git a/web/manual/assets/ch05/assembly-create-insert/02-insert-links.png b/web/manual/assets/ch05/assembly-create-insert/02-insert-links.png new file mode 100644 index 00000000..33fa6445 Binary files /dev/null and b/web/manual/assets/ch05/assembly-create-insert/02-insert-links.png differ diff --git a/web/manual/assets/ch05/assembly-create-insert/03-assembly-result.png b/web/manual/assets/ch05/assembly-create-insert/03-assembly-result.png new file mode 100644 index 00000000..5d0029dd Binary files /dev/null and b/web/manual/assets/ch05/assembly-create-insert/03-assembly-result.png differ diff --git a/web/manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png b/web/manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png new file mode 100644 index 00000000..9bb89eb1 Binary files /dev/null and b/web/manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png differ diff --git a/web/manual/assets/ch07/file-tools/01-file-tools.png b/web/manual/assets/ch07/file-tools/01-file-tools.png new file mode 100644 index 00000000..de27a499 Binary files /dev/null and b/web/manual/assets/ch07/file-tools/01-file-tools.png differ diff --git a/web/manual/assets/ch08/mesh-workbench/01-mesh-page.png b/web/manual/assets/ch08/mesh-workbench/01-mesh-page.png new file mode 100644 index 00000000..fc1ddaea Binary files /dev/null and b/web/manual/assets/ch08/mesh-workbench/01-mesh-page.png differ diff --git a/web/manual/assets/ch09/bim-workbench/01-bim-page.png b/web/manual/assets/ch09/bim-workbench/01-bim-page.png new file mode 100644 index 00000000..e81fe798 Binary files /dev/null and b/web/manual/assets/ch09/bim-workbench/01-bim-page.png differ diff --git a/web/manual/assets/ch10/cam-job/01-cam-job.png b/web/manual/assets/ch10/cam-job/01-cam-job.png new file mode 100644 index 00000000..c4483159 Binary files /dev/null and b/web/manual/assets/ch10/cam-job/01-cam-job.png differ diff --git a/web/manual/assets/ch11/techdraw-page/01-techdraw-page.png b/web/manual/assets/ch11/techdraw-page/01-techdraw-page.png new file mode 100644 index 00000000..83b37a01 Binary files /dev/null and b/web/manual/assets/ch11/techdraw-page/01-techdraw-page.png differ diff --git a/web/manual/assets/ch12/fem-workbench/01-fem-page.png b/web/manual/assets/ch12/fem-workbench/01-fem-page.png new file mode 100644 index 00000000..a8a597ce Binary files /dev/null and b/web/manual/assets/ch12/fem-workbench/01-fem-page.png differ diff --git a/web/manual/assets/ch13/specialist-tools/01-openscad.png b/web/manual/assets/ch13/specialist-tools/01-openscad.png new file mode 100644 index 00000000..65860d24 Binary files /dev/null and b/web/manual/assets/ch13/specialist-tools/01-openscad.png differ diff --git a/web/manual/assets/ch13/specialist-tools/02-robot.png b/web/manual/assets/ch13/specialist-tools/02-robot.png new file mode 100644 index 00000000..c9db0340 Binary files /dev/null and b/web/manual/assets/ch13/specialist-tools/02-robot.png differ diff --git a/web/manual/assets/ch13/specialist-tools/03-plot.png b/web/manual/assets/ch13/specialist-tools/03-plot.png new file mode 100644 index 00000000..5279dbe9 Binary files /dev/null and b/web/manual/assets/ch13/specialist-tools/03-plot.png differ diff --git a/web/manual/assets/ch14/case/01-assembly.png b/web/manual/assets/ch14/case/01-assembly.png new file mode 100644 index 00000000..e5e617a7 Binary files /dev/null and b/web/manual/assets/ch14/case/01-assembly.png differ diff --git a/web/manual/assets/ch14/case/02-reference.png b/web/manual/assets/ch14/case/02-reference.png new file mode 100644 index 00000000..22569075 Binary files /dev/null and b/web/manual/assets/ch14/case/02-reference.png differ diff --git a/web/manual/content/ch00-start.md b/web/manual/content/ch00-start.md new file mode 100644 index 00000000..d45818fc --- /dev/null +++ b/web/manual/content/ch00-start.md @@ -0,0 +1,81 @@ +--- +id: ch00 +order: 0 +title: 导读、启动与 OPFS +level: core +--- + +# 第 0 章 导读、启动与 OPFS + +## 学习目标 + +- 知道 Web FreeCAD 的入口、工作台与文档模型。 +- 理解 OPFS 是默认存储位置,下载必须显式触发。 +- 找到本手册的使用方式、命令索引与缺口说明。 + +## 0.1 启动与入口 + +- 应用:`http://127.0.0.1:5181/` +- 项目页:`/project.html?workbench=Part` +- PartDesign:`/partdesign.html` +- 工作台入口:`/workbench.html?module=&command=` +- 教学服务:`http://127.0.0.1:5190/` + +点左上角 Start 打开启动面板:新建文档、打开 OPFS 文档、打开最近文件。 + +![Start 启动面板](./manual-assets/ch00/start-opfs/01-start-dialog.png) + +## 0.2 文档与工作台 + +Web FreeCAD 有多个文档所有者: + +| 页面 | 文档所有者 | 适用 | +|---|---|---| +| `project.html` | Part / DocumentProbe | Part、Sketcher、Spreadsheet、Assembly | +| `partdesign.html` | PartDesign | Body、Sketch、Pad/Pocket | +| `workbench.html` | 模块 Worker | 各模块命令与任务 | +| `project.html?workbench=Assembly` | Assembly | 装配 | + +项目页的 Part 文档不能直接切换到 PartDesign,会出现 ownership handoff 提示; +学习 PartDesign 请用 `partdesign.html`。 + +## 0.3 OPFS 文件生命周期 + +1. 新建/编辑文档在浏览器内存中。 +2. 点“保存 FCStd 到 OPFS”写入浏览器私有文件系统。 +3. 状态栏出现 `Saved .FCStd to OPFS`。 +4. 需要本地副本时,点“下载到本地”或导出面板的下载按钮。 +5. 导入/导出文件默认也写 `freecad-exports` 目录。 + +![文件工具:导入、导出、OPFS 保存/打开与下载](./manual-assets/ch00/start-opfs/02-file-tools.png) + +> Web 版不会自动下载文件;找不到导出结果时先看 OPFS 列表,而不是本地下载目录。 + +## 0.4 怎么用这本手册 + +- 第 1–7 章是核心建模与交付流程,建议按顺序跟练。 +- 第 8–13 章是专业工作台,每章先看能力概览与边界,再做 1–2 个工作流。 +- 第 14 章是 27 件 GLB 产线综合案例。 +- 附录是 1602 条命令索引,可按模块/状态筛选;状态为“边界”的命令当前 Web 端受限。 + +每节包含:学习目标、入口、分步操作、参数表、截图、自检、常见错误、练习。 +截图全部来自真实 Web 页面;0 pageError/consoleError 才写入。 + +## 自检 + +- [ ] 能打开 Start 面板并新建文档。 +- [ ] 能找到 OPFS 保存按钮与下载按钮。 +- [ ] 知道 project/partdesign/workbench 三个入口的区别。 +- [ ] 能在附录命令索引中搜索一个命令。 + +## 常见错误 + +1. 把“保存到 OPFS”当成浏览器下载。 +2. 在 project 页强行切 PartDesign。 +3. 用 `file://` 打开 HTML 导致 Worker/WASM 加载失败。 +4. 忽略状态栏的保存/导入结果。 + +## 练习 + +1. 新建文档,保存到 OPFS,刷新页面后从 Start 面板重新打开。 +2. 在附录搜索 `PartDesign_Pad`,记录它所属章节与状态。 diff --git a/web/manual/content/ch05-assembly.md b/web/manual/content/ch05-assembly.md new file mode 100644 index 00000000..d8b79bcd --- /dev/null +++ b/web/manual/content/ch05-assembly.md @@ -0,0 +1,104 @@ +--- +id: ch05 +order: 5 +title: Assembly 装配 +level: core +--- + +# 第 5 章 Assembly 装配 + +## 学习目标 + +- 在 Assembly 工作台创建装配文档。 +- 从 OPFS 中的 FCStd 源文件插入零件链接,理解“链接”不是复制几何。 +- 认识 Ground、Joint、Solve、Exploded、BOM、Simulation 的用途。 +- 能判断装配失败是源文件、链接还是求解器问题。 + +## 5.1 创建装配文档 + +打开 Assembly 工作台: + +`/workbench.html?module=Assembly&command=Assembly_CreateAssembly` + +在 “Assembly document” 任务里填写: + +| 参数 | 本例 | +|---|---| +| Assembly document name | `ManualAssembly` | +| Assembly label | `手动装配` | + +点 Create。装配文档与零件文档分开保存;装配里保存的是链接与关节。 + +![Assembly 创建任务:文档名与标签](./manual-assets/ch05/assembly-create-insert/01-create-assembly.png) + +## 5.2 插入零件链接 + +创建后自动进入 Insert Link 任务: + +1. Source 选择 OPFS 中的 `manual-assembly-source.FCStd`。 +2. 点 “Load source”,读取源文件里的对象列表。 +3. Object 选择 `CabinetA_P01`,点 Insert。 +4. 再选择 `CabinetA_P02`,点 Insert。 +5. 可设置 Position X/Y/Z;Rigid link 表示刚性链接。 +6. 点 Accept 完成。 + +![Insert Link:源文件、对象与 2 条已插入链接](./manual-assets/ch05/assembly-create-insert/02-insert-links.png) + +插入成功后,列表会显示: + +``` +CabinetA_P01 → Component (manual_assembly_source/Box) +CabinetA_P02 → Component001 (manual_assembly_source/Box001) +``` + +> 源文件必须先在 OPFS 中。Web 版不能用本地绝对路径直接引用外部 FCStd。 + +## 5.3 装配结果 + +Accept 后,Assemblies 面板出现 `ManualAssembly`,其下是组件链接。 +双击组件可激活/编辑;链接与源文档保持关联,改源文件后装配会提示更新。 + +![装配结果:ManualAssembly 与两个组件](./manual-assets/ch05/assembly-create-insert/03-assembly-result.png) + +## 5.4 关节与求解 + +| 命令 | 用途 | +|---|---| +| `Assembly_ToggleGrounded` | 固定一个组件,作为装配基准 | +| `Assembly_CreateJointFixed` | 固定关节 | +| `Assembly_CreateJointRevolute` | 旋转关节 | +| `Assembly_CreateJointSlider` | 滑动关节 | +| `Assembly_CreateJointBall` | 球关节 | +| `Assembly_CreateJointDistance` | 距离关节 | +| `Assembly_CreateJointAngle` | 角度关节 | +| `Assembly_CreateJointGears` / `Belt` / `RackPinion` / `Screw` | 齿轮/带/齿条/丝杠 | +| `Assembly_SolveAssembly` | 求解当前关节约束 | +| `Assembly_CreateView` | 爆炸视图 | +| `Assembly_CreateBom` | BOM 物料清单 | +| `Assembly_CreateSimulation` | 运动仿真 | +| `Assembly_ExportASMT` | 导出装配 | + +典型顺序:插入组件 → Ground 基准件 → 建关节(选两个组件与子元素)→ Solve → +检查 Solver messages → 爆炸/BOM/仿真 → 导出。 + +## 自检 + +- [ ] Assemblies 面板有 `ManualAssembly`。 +- [ ] Insert Link 列表有 2 条链接。 +- [ ] 源文件显示为 `manual-assembly-source.FCStd`。 +- [ ] 能打开 Joint 面板并看到 Component 1/2 与 Subelement。 +- [ ] Solve 后 Solver messages 没有 malformed/redundant 错误。 + +## 常见错误 + +1. 源文件不在 OPFS,Source 下拉框为空。 +2. 只插入一个组件就建关节,缺少配对对象。 +3. 重复点击 Insert,产生重复链接。 +4. 没有 Ground 就 Solve,整个装配漂移。 +5. 改源文件后未更新链接,装配仍显示旧几何。 + +## 练习 + +1. 插入第三个组件 `CabinetA_P03`。 +2. 把 `CabinetA_P01` 设为 Ground,再建一个 Fixed 关节连接 P01/P02。 +3. 点 Solve,记录 Solver messages 中的 dof 与错误数量。 diff --git a/web/manual/content/ch06-measure-material-sheet.md b/web/manual/content/ch06-measure-material-sheet.md new file mode 100644 index 00000000..2d0ff21d --- /dev/null +++ b/web/manual/content/ch06-measure-material-sheet.md @@ -0,0 +1,86 @@ +--- +id: ch06 +order: 6 +title: 测量、检查、材质与表格 +level: core +--- + +# 第 6 章 测量、检查、材质与表格 + +## 学习目标 + +- 用 Measure 读取距离、角度与质量属性。 +- 用 Inspection 做元素/可视化检查。 +- 用 Material/Appearance 设置材质与外观。 +- 用 Spreadsheet 建立参数表、别名与公式。 + +## 6.1 Spreadsheet 参数表 + +切换工作台到 `Spreadsheet`,点 “Create spreadsheet”。表格支持: + +| 功能 | 命令/操作 | +|---|---| +| 新建表 | `Spreadsheet_CreateSheet` | +| 单元格编辑 | 双击单元格,输入内容 | +| 别名 | `Spreadsheet_SetAlias` | +| 合并/拆分 | `MergeCells` / `SplitCell` | +| 对齐 | `AlignLeft/Center/Right` | +| 样式 | `StyleBold` / `StyleItalic` / `StyleUnderline` | +| 导入/导出 | `Spreadsheet_Import` / `Export` | + +公式以 `=` 开头;表达式可引用其他单元格,例如 `=B2+C2`。零件尺寸、Pad 长度、 +阵列数量都可以绑定到表格别名,实现“改表驱动模型”。 + +![Spreadsheet:表格、公式与样式工具](./manual-assets/ch06/spreadsheet-measure/01-spreadsheet.png) + +## 6.2 Measure + +| 命令 | 用途 | +|---|---| +| `Std_Measure` | 距离/角度测量 | +| `Std_MassProperties` | 体积、面积、质量、质心 | +| `measure.measurementApi` | 通过 API 读取测量结果 | +| `measure.objectFamily` | 对象级测量 | + +在项目页 Tasks 区点 “Std_Measure — Measure” 或 “Std_MassProperties — Mass properties” +打开任务,选择两个对象/子元素后读取结果。 + +## 6.3 Inspection + +- `Inspection_InspectElement`:检查面/边/顶点信息。 +- `Inspection_VisualInspection`:可视化检查(曲率/偏差)。 +- 任务面板会列出选中元素的数量、类型与几何数据。 + +## 6.4 Material 与 Appearance + +| 命令 | 用途 | +|---|---| +| `Std_SetAppearance` | 设置显示颜色/材质 | +| `Std_SetMaterial` | 指定材料 | +| `Material_Edit` | 编辑材料属性 | +| `Materials_InspectAppearance` | 检查外观 | +| `Materials_InspectMaterial` | 检查材料 | + +颜色会写入 FCStd 的 `WebDisplayColor`,保存后重新打开仍保留。 +材料原生库在 Web 端仍有 API 兼容边界;以界面任务的实际可用项为准。 + +## 自检 + +- [ ] Spreadsheet 能创建、输入文本/数字/公式。 +- [ ] 公式 `=B2+C2` 能随 B2 变化。 +- [ ] 能打开 Measure 或 MassProperties 任务。 +- [ ] 能设置对象颜色并在保存后回开确认。 +- [ ] 知道 Inspection 的两个命令。 + +## 常见错误 + +1. 公式单元格输入后没有按 Enter/Apply。 +2. 测量时未选择对象,任务显示空结果。 +3. 只改显示颜色但没有触发应用,保存后丢失。 +4. 把表格别名与对象属性混用却没建立绑定。 + +## 练习 + +1. 建一张 3 行参数表,用公式计算长×宽。 +2. 测量一个 Box 的体积与质心,与属性面板对照。 +3. 给两个对象设置不同颜色,保存后重新打开检查。 diff --git a/web/manual/content/ch07-import-export.md b/web/manual/content/ch07-import-export.md new file mode 100644 index 00000000..29c585b5 --- /dev/null +++ b/web/manual/content/ch07-import-export.md @@ -0,0 +1,80 @@ +--- +id: ch07 +order: 7 +title: 导入导出与 OPFS +level: core +--- + +# 第 7 章 导入导出与 OPFS + +## 学习目标 + +- 从文件工具导入 STEP/IGES/BREP/PLMXML/StepZ 与网格文件。 +- 导出 STEP/BREP/IGES/STL 等格式到 OPFS。 +- 区分“保存 FCStd”“导出交换格式”“下载到本地”三件事。 +- 知道 glTF/GLB 原生导入导出的当前边界。 + +## 7.1 文件工具面板 + +项目页 File → Open / import / export 会打开右侧文件工具,包含: + +- 导入:Read BREP、Import STEP、Import IGES、Import glTF、Import PLMXML、 + Import compressed STEP、OpenSCAD/JT/PLMXML 文档。 +- 导出:`Native export format` 选择 STEP/BREP/IGES/STL,点“导出选中对象”。 +- OPFS:保存 FCStd、下载 FCStd、从 OPFS 导入、刷新导出件/文档、打开文档。 + +![文件工具:导入、导出与 OPFS 列表](./manual-assets/ch07/file-tools/01-file-tools.png) + +## 7.2 导入 + +1. 新建/打开目标文档。 +2. 在文件工具选择格式或点对应导入按钮。 +3. 选择本地文件;Web 版会读入内核并生成对象。 +4. 查看状态栏与对象树;失败时记录 `error` 文本。 + +格式要点: + +| 格式 | 说明 | +|---|---| +| STEP | 最通用的实体交换格式,推荐交付 | +| IGES | 曲面/线框较多,实体质量取决于源文件 | +| BREP | OCCT 原生边界表示,适合调试 | +| PLMXML/StepZ | 装配/压缩 STEP 变体 | +| STL/OBJ/3MF | 网格;导入后是 Mesh/Part 形状,不是参数化特征 | + +## 7.3 导出 + +1. 选中要导出的对象(可多选)。 +2. 选择 `Native export format`。 +3. 点“导出选中对象”。 +4. 在 OPFS `freecad-exports` 列表确认新文件。 +5. 需要本地副本时点“下载”。 + +> OPFS 是默认落盘位置;未点下载时浏览器不会弹出保存对话框。 + +## 7.4 glTF/GLB 边界 + +Web 内核的 glTF Reader/Writer 路径存在,但当前 OCCT WASM 构建 +`USE_RAPIDJSON=OFF`,原生导入/导出不可用。参考模型查看使用 three.js +(第 14 章产线案例),不作为 CAD 导入/导出。手册把该命令标注为“边界”。 + +## 自检 + +- [ ] 能打开文件工具并看到导入/导出/OPFS 三组控件。 +- [ ] 能导出选中对象为 STEP 或 STL。 +- [ ] 能在 OPFS 列表找到导出文件。 +- [ ] 知道 glTF 原生导入不可用。 +- [ ] 能区分 FCStd 保存与 STEP 导出。 + +## 常见错误 + +1. 未选中对象就点导出,得到空文件。 +2. 导出后去本地下载目录找,实际在 OPFS。 +3. 把 STL 当参数化实体继续编辑;它只是网格。 +4. 用 glTF 导入失败后误判为文件损坏,实际是构建边界。 + +## 练习 + +1. 建一个 Box,导出 STEP 与 STL,比较两个文件大小。 +2. 在 OPFS 列表中删除一个导出文件,再重新导出。 +3. 导入一个 STEP,检查对象树与包围盒。 diff --git a/web/manual/content/ch08-mesh-points-surface.md b/web/manual/content/ch08-mesh-points-surface.md new file mode 100644 index 00000000..e0b6faed --- /dev/null +++ b/web/manual/content/ch08-mesh-points-surface.md @@ -0,0 +1,70 @@ +--- +id: ch08 +order: 8 +title: 网格、点、逆向与曲面 +level: specialist +--- + +# 第 8 章 网格、点、逆向与曲面 + +## 能力概览 + +| 模块 | 主要能力 | 命令示例 | +|---|---|---| +| Mesh | 导入/导出、从形状生成网格、布尔、抽稀、平滑、重网格、截面 | `Mesh_Import`、`Mesh_FromPartShape`、`Mesh_Boolean`、`Mesh_Decimating`、`Mesh_RemeshGmsh` | +| MeshPart | 网格转形状、修剪、分段、评估 | `MeshPart_CreateShape`、`MeshPart_Trim`、`MeshPart_Sections` | +| Points | 点云导入/导出、合并、从网格取点 | `Points_Import`、`Points_Merge`、`Points_FromMesh` | +| ReverseEngineering | 近似曲面/分割/拟合 | `ReverseEngineering_Approximation`、`Segmentation` | +| Surface | 填充、GeomFill、边界曲面 | `Surface_Filling`、`Surface_GeomFillSurface` | + +![Mesh 模块页面:命令清单与 Worker 状态](./manual-assets/ch08/mesh-workbench/01-mesh-page.png) + +## 8.1 网格工作流 + +1. 在 Part/PartDesign 建一个实体。 +2. 打开 Mesh 工作台,使用 `Mesh_FromPartShape` 生成网格。 +3. 用 `Mesh_Evaluation` 查看三角面数、体积、边界。 +4. 需要轻量化时用 `Mesh_Decimating`,再 `Mesh_Export` 到 STL/OBJ/3MF。 + +> 当前 Web 构建的 Mesh 模块页会显示 `boundary · no worker`。能用的入口以 +> 项目页 Part 的 “Shape From Mesh / Points From Shape” 与 Import 的网格路径为准; +> 不能用的命令在附录标为边界,不写成可用。 + +## 8.2 网格转实体 + +- `Part_ShapeFromMesh`:把 Mesh 转为 Part 形状。 +- `Part_MakeSolid`:把封闭壳转为实体。 +- `MeshPart_CreateShape`:带公差/缝合参数的转换。 +- 转换后仍需 `Part_CheckGeometry` 检查有效性。 + +## 8.3 点云与逆向 + +1. `Points_Import` 读入点云。 +2. `Points_Merge` 合并多个点云。 +3. 逆向/曲面模块做分割与拟合;结果为近似曲面,需人工检查偏差。 + +## 边界与注意 + +- Mesh 的无 Worker 命令不能从模块页直接执行;不要把它们当作已通过功能。 +- 网格式导出(STL/OBJ/3MF)不含参数化历史,不能反向恢复 Pad/Pocket。 +- 点云/逆向结果通常是非参数曲面,后续编辑能力有限。 + +## 自检 + +- [ ] 能说出 Mesh/MeshPart/Points/ReverseEngineering/Surface 各 1 个命令。 +- [ ] 能从实体生成网格并查看三角面数。 +- [ ] 知道 Mesh 模块页的 boundary 标记含义。 +- [ ] 能把网格转为 Part 形状并检查有效性。 + +## 常见错误 + +1. 把网格当实体做布尔,结果出现开放边。 +2. 抽稀过度导致尺寸/特征丢失。 +3. 未检查网格封闭性就转实体。 +4. 认为 STL 可以恢复参数化特征。 + +## 练习 + +1. 建一个 Box,生成网格,记录三角面数。 +2. 抽稀 50%,比较体积与包围盒误差。 +3. 把网格转 Part 形状并跑 CheckGeometry。 diff --git a/web/manual/content/ch09-bim.md b/web/manual/content/ch09-bim.md new file mode 100644 index 00000000..963e1122 --- /dev/null +++ b/web/manual/content/ch09-bim.md @@ -0,0 +1,66 @@ +--- +id: ch09 +order: 9 +title: BIM 建筑信息模型 +level: specialist +--- + +# 第 9 章 BIM 建筑信息模型 + +## 能力概览 + +BIM 工作台把建筑构件组织为楼层/建筑/场地层级,并支持 IFC 数据: + +| 类别 | 命令 | +|---|---| +| 项目结构 | `Arch_Site`、`Arch_Building`、`Arch_Floor` | +| 墙/结构 | `Arch_Wall`、`Arch_Structure`、`BIM_Column`、`BIM_Beam`、`BIM_Slab` | +| 门窗 | `Arch_Window`、`Arch_Door` | +| 屋顶/面板/框架 | `Arch_Roof`、`Arch_Panel`、`Arch_Frame` | +| 轴网/尺寸 | `Arch_Axis`、`Draft_Dimension` | +| IFC | `BIM_IfcExplorer`、`BIM_IfcOpenShellUpdate`、`BIM_Windows` | +| 学习 | `BIM_Tutorial` | + +![BIM 模块页面:命令清单、Worker 与 GUI 依赖](./manual-assets/ch09/bim-workbench/01-bim-page.png) + +## 9.1 建筑项目工作流 + +1. 新建文档,创建 `Site`(场地)。 +2. 在场地内创建 `Building`,再建 `Floor`。 +3. 在楼层内画墙:`Arch_Wall`,设置长度/高度/厚度/对齐。 +4. 加门窗:`Arch_Window` / `Arch_Door`,选择宿主墙。 +5. 加楼板/柱/梁:`BIM_Slab`、`BIM_Column`、`BIM_Beam`。 +6. 用 `BIM_IfcExplorer` 查看 IFC 结构,必要时导出 IFC。 + +## 9.2 轴网与尺寸 + +- `Arch_Axis` 建立轴网,墙可对齐轴线。 +- `Draft_Dimension`/`TechDraw` 标注尺寸。 +- 楼层高度、墙厚、门窗尺寸建议用 Spreadsheet 参数表驱动。 + +## 9.3 当前 Web 边界 + +BIM 模块页显示大量命令 `boundary · no worker`,表示 GUI/桌面命令尚未全部移植。 +能用的入口以 BIM 页面任务、项目页 Architecture 工作台与 Import/IFC 路径为准; +不可用命令在附录标为边界,不写成通过。 + +## 自检 + +- [ ] 能创建 Site/Building/Floor 层级。 +- [ ] 能创建一面墙并修改高度/厚度。 +- [ ] 能把门窗挂到墙上。 +- [ ] 能打开 IFC Explorer。 +- [ ] 知道 BIM 页面 boundary 标记的含义。 + +## 常见错误 + +1. 没有楼层就建墙,构件没有宿主层级。 +2. 门窗没有选择宿主墙。 +3. 把 boundary 命令当已实现功能写进交付。 +4. 未设置单位就导入 IFC,尺寸差一千倍。 + +## 练习 + +1. 建一个 6×4 m 的房间:四面墙 + 楼板 + 一扇门。 +2. 用参数表改墙高 2.8 → 3.2 m,观察所有墙更新。 +3. 打开 IFC Explorer,记录墙/门/楼板的 IFC 类型。 diff --git a/web/manual/content/ch10-cam.md b/web/manual/content/ch10-cam.md new file mode 100644 index 00000000..8471cd1a --- /dev/null +++ b/web/manual/content/ch10-cam.md @@ -0,0 +1,63 @@ +--- +id: ch10 +order: 10 +title: CAM 加工 +level: specialist +--- + +# 第 10 章 CAM 加工 + +## 能力概览 + +| 步骤 | 命令 | +|---|---| +| 建 Job | `CAM_Job`(Stock、Tool、Model、Post) | +| 2D/3D 路径 | `CAM_Profile`、`CAM_Pocket_Shape`、`CAM_Pocket3D`、`CAM_Adaptive` | +| 孔/槽/面 | `CAM_Drilling`、`CAM_Helix`、`CAM_Engrave`、`CAM_MillFacing` | +| 修饰 | `CAM_DressupDogbone`、`DressupDragKnife`、`DressupRampEntry`、`DressupTag` | +| 后处理/仿真 | `CAM_Post`、`CAM_PostSelected`、`CAM_Simulator` | +| 刀具 | `CAM_ToolBitLoad`、`CAM_ToolBitSave`、`CAM_ExportTemplate` | + +![CAM Job 任务:Stock、Tool、Model 与 Post](./manual-assets/ch10/cam-job/01-cam-job.png) + +## 10.1 建立 CAM Job + +1. 打开 `/workbench.html?module=CAM&command=CAM_Job`。 +2. 选择模型(Model)、毛坯(Stock)与刀具(Tool)。 +3. 选择后处理器(GRBL/LinuxCNC 等),或自定义 post。 +4. 点 Create 生成 Job。 + +## 10.2 生成路径 + +1. 选中 Job。 +2. 依次添加 `Profile` / `Pocket` / `Drilling` 等操作。 +3. 每个操作选择几何(面/边/孔)与参数(步距、下刀、退刀、转速)。 +4. 用 `CAM_Simulator` 检查刀路与过切。 +5. `CAM_Post` 输出 G-code 到 OPFS。 + +## 10.3 当前 Web 边界 + +CAM 模块页有 7 个 native handler,但 Adaptive/Surface/Waterline 依赖 OpenCAMLib, +完整 ToolBit 库与 G-code 编辑器仍是桌面能力。可用命令以 CAM 任务面板实际暴露的为准; +边界命令在附录标注,不作为通过项。 + +## 自检 + +- [ ] 能创建 CAM Job 并选择 Model/Stock/Tool。 +- [ ] 能添加 Profile 或 Pocket 操作。 +- [ ] 能打开 Simulator 检查刀路。 +- [ ] 能 Post 出 G-code 并在 OPFS 找到。 +- [ ] 知道 OpenCAMLib 相关命令为边界。 + +## 常见错误 + +1. 没有毛坯/模型就建 Job。 +2. 刀具直径与几何不匹配,路径过切。 +3. 后处理器选错,G-code 不被机床识别。 +4. 把 Adaptive 当已可用;当前 Web 端受限。 + +## 练习 + +1. 对一个 80×60×20 的 Box 建 Job,做外形 Profile。 +2. 加一个 Drilling 操作,选择 4 个孔位。 +3. Post 后打开 G-code,检查 G0/G1 与主轴指令。 diff --git a/web/manual/content/ch11-techdraw.md b/web/manual/content/ch11-techdraw.md new file mode 100644 index 00000000..117429b8 --- /dev/null +++ b/web/manual/content/ch11-techdraw.md @@ -0,0 +1,56 @@ +--- +id: ch11 +order: 11 +title: TechDraw 工程图 +level: specialist +--- + +# 第 11 章 TechDraw 工程图 + +## 能力概览 + +| 类别 | 命令 | +|---|---| +| 页面 | `TechDraw_PageDefault`、`TechDraw_PageTemplate` | +| 视图 | `TechDraw_View`、`ProjectionGroup`、`SectionView`、`DetailView` | +| 标注 | `TechDraw_Dimension`、`Balloon`、`LeaderLine`、`WeldSymbol`、`SurfaceFinishSymbols` | +| 填充 | `TechDraw_Hatch`、`GeometricHatch` | +| 导出 | `TechDraw_ExportPageSVG`、`ExportPageDXF` | +| 其他 | `ArchView`、`DraftView`、`ActiveView`、`PrintAll` | + +![TechDraw 模块页面:页面/视图命令与 Hatches 任务](./manual-assets/ch11/techdraw-page/01-techdraw-page.png) + +## 11.1 出图工作流 + +1. 准备实体模型(Part/PartDesign)。 +2. 新建页面:`TechDraw_PageDefault`(A4 横向/纵向)。 +3. 插入视图:`TechDraw_View` 选择模型;或 `ProjectionGroup` 一次生成多视图。 +4. 加剖视/局部视图:`SectionView`、`DetailView`。 +5. 标注尺寸、中心线、公差、表面粗糙度。 +6. 导出 SVG/DXF 或打印。 + +## 11.2 当前 Web 边界 + +TechDraw 命令在模块页可见,但页面 Worker 与文档 Worker 之间没有跨 Worker 文档桥: +`TechDraw_PageDefault` 会报 `Document does not exist`;SVG 回退不是 TechDraw 输出。 +本手册把 TechDraw 出图标为边界,不能把模块页命令清单当作已通过功能。 + +## 自检 + +- [ ] 能说出页面、视图、标注、导出各 1 个命令。 +- [ ] 知道 TechDraw 当前跨 Worker 边界。 +- [ ] 能区分 TechDraw 页面与普通 SVG 截图。 +- [ ] 知道桌面版与 Web 版出图能力差异。 + +## 常见错误 + +1. 把 SVG 截图当 TechDraw 图纸交付。 +2. 未准备模型就建页面。 +3. 认为模块页出现命令就等于可用。 +4. 忽略跨 Worker 文档不存在的错误。 + +## 练习 + +1. 在桌面 FreeCAD 中完成一次三视图 + 尺寸标注,作为 Web 版对照。 +2. 在 Web 模块页打开 TechDraw,记录失败命令与错误文本。 +3. 把你的对照结果写入缺口表。 diff --git a/web/manual/content/ch12-fem.md b/web/manual/content/ch12-fem.md new file mode 100644 index 00000000..47cefa9e --- /dev/null +++ b/web/manual/content/ch12-fem.md @@ -0,0 +1,59 @@ +--- +id: ch12 +order: 12 +title: FEM 有限元 +level: specialist +--- + +# 第 12 章 FEM 有限元 + +## 能力概览 + +| 步骤 | 命令 | +|---|---| +| 分析容器 | `FEM_Analysis` | +| 材料 | `FEM_MaterialSolid`、`FEM_MaterialFluid`、`FEM_MaterialMechanicalNonlinear` | +| 约束 | `FEM_ConstraintFixed`、`ConstraintDisplacement`、`ConstraintContact` | +| 载荷 | `FEM_ConstraintForce`、`ConstraintPressure`、`ConstraintTemperature` | +| 网格 | `FEM_MeshGmshFromShape`、`MeshNetgenFromShape` | +| 求解 | `FEM_SolverCalculiX`、`SolverElmer`、`SolverRun` | +| 结果 | `FEM_ResultShow`、`PostPipelineFromResult` | + +![FEM 模块页面:分析/材料/约束/求解命令清单](./manual-assets/ch12/fem-workbench/01-fem-page.png) + +## 12.1 静力分析工作流 + +1. 准备实体模型。 +2. 新建 `Analysis`。 +3. 指定材料(E、ν、密度)。 +4. 加固定约束与载荷(力/压力)。 +5. 生成网格:Gmsh 或 Netgen,设置单元尺寸。 +6. 选求解器(CalculiX/Elmer),运行。 +7. 查看位移/应力云图与结果表。 + +## 12.2 当前 Web 边界 + +FEM 原生对象(`Fem::FemMeshObject`、`FemResultObject`)未随包发布,结果停留在 Worker; +VTK 显示为 three.js 近似。Web 端能做部分前处理与任务面板操作,但不能宣称完整原生 +FEM 结果已保存/可回开。相关命令在附录标为边界。 + +## 自检 + +- [ ] 能创建 Analysis 并指定材料。 +- [ ] 能加固定约束与力/压力。 +- [ ] 能生成 Gmsh/Netgen 网格。 +- [ ] 知道结果对象/原生网格的 Web 边界。 +- [ ] 能说明桌面与 Web 结果保存差异。 + +## 常见错误 + +1. 没有材料就求解。 +2. 约束不足导致刚体位移。 +3. 网格过粗,应力集中处结果不可信。 +4. 把 Worker 内结果当作已保存到 FCStd。 + +## 练习 + +1. 对 100×20×10 的悬臂梁做静力分析。 +2. 比较两种网格尺寸的位移差。 +3. 记录 Web 端结果面板缺失项,作为边界证据。 diff --git a/web/manual/content/ch13-specialists.md b/web/manual/content/ch13-specialists.md new file mode 100644 index 00000000..d3c933ca --- /dev/null +++ b/web/manual/content/ch13-specialists.md @@ -0,0 +1,77 @@ +--- +id: ch13 +order: 13 +title: Draft、Plot、OpenSCAD 等专项工具 +level: specialist +--- + +# 第 13 章 Draft、Plot、OpenSCAD 等专项工具 + +## 能力概览 + +| 模块 | 能力 | 代表命令 | +|---|---|---| +| Draft | 2D 线/圆/矩形/多边形、移动/旋转/阵列/克隆、尺寸 | `Draft_Line`、`Draft_Circle`、`Draft_Array`、`Draft_Move`、`Draft_Dimension` | +| Plot | 2D 图表:Figure/Axes/Series | `Plot_Axes`、`plot.pythonFamilyBatch` | +| OpenSCAD | 添加 OpenSCAD 元素、Hull/Minkowski/布尔/导入 CSG | `OpenSCAD_AddOpenSCADElement`、`OpenSCAD_Hull`、`ImportCSG` | +| Robot | 机器人、轨迹、示教 | `Robot_CreateRobot`、`Robot_AddToolShape`、`Robot_Trajectory` | +| Cloud | 云端保存/恢复(需远程服务) | `cloud.save`、`cloud.restore` | +| JtReader | JT 文件读取 | `JtReader_*` | +| Sandbox | 自定义/实验工作台 | `Sandbox_*` | +| Test/Tux/TemplatePyMod/Show | 测试、模板、显示辅助 | 对应模块命令 | + +## 13.1 OpenSCAD 元素 + +![OpenSCAD 元素任务:代码、参数与执行](./manual-assets/ch13/specialist-tools/01-openscad.png) + +1. 新建/打开文档。 +2. 打开 OpenSCAD 工作台,点 “Add OpenSCAD element”。 +3. 输入代码(如 `cube([10,10,10]);`),设置参数。 +4. 执行后在对象树生成网格/形状。 +5. 需要布尔/外壳时用 Hull/Minkowski 等命令。 + +> Web 端 OpenSCAD 第二次编译存在崩溃边界;逐次保存,避免同一实例连续编译。 + +## 13.2 Robot + +![Robot 工作台:机器人、关节角与 Tool frame](./manual-assets/ch13/specialist-tools/02-robot.png) + +- `Robot_CreateRobot` 创建机器人。 +- `Joint angles (degrees)` 设置各轴角度。 +- `Robot_Tool frame` 设置工具坐标系。 +- 轨迹/示教命令用于生成运动路径。 + +## 13.3 Plot + +![Plot 工作台:Figure/Axes/Series](./manual-assets/ch13/specialist-tools/03-plot.png) + +Plot 用于把表格/表达式画成 2D 图:先建 Figure,再加 Axes 与 Series, +最后导出 PNG/SVG。 + +## 13.4 其他模块与边界 + +- **Draft**:项目页工作台可选 Draft;2D 命令与阵列、尺寸标注。 +- **Cloud**:Save/Restore 需要远程 S3 与凭据;本地 OPFS 不受影响。 +- **JtReader**:JT 读取;命令数量少,按模块页实际暴露项使用。 +- **Sandbox/Test/Tux/TemplatePyMod/Show**:实验/测试/模板/显示辅助,不作为产品主流程。 + +## 自检 + +- [ ] 能打开 OpenSCAD 元素任务并执行一段代码。 +- [ ] 能在 Robot 工作台修改关节角并观察姿态。 +- [ ] 能创建 Plot Figure/Axes/Series。 +- [ ] 知道 Cloud 需要远程服务。 +- [ ] 能在附录查到这些模块的命令与状态。 + +## 常见错误 + +1. OpenSCAD 连续编译导致实例崩溃。 +2. Robot 关节角单位混用度/弧度。 +3. Plot 没建 Axes 就加 Series。 +4. Cloud 未配置远程存储就点 Save。 + +## 练习 + +1. 用 OpenSCAD 画一个 20×20×20 立方体并转 Part 形状。 +2. 在 Robot 中设置 6 个关节角,截取姿态。 +3. 用 Plot 画一条正弦曲线并导出。 diff --git a/web/manual/content/ch14-production-line.md b/web/manual/content/ch14-production-line.md new file mode 100644 index 00000000..78833f4d --- /dev/null +++ b/web/manual/content/ch14-production-line.md @@ -0,0 +1,78 @@ +--- +id: ch14 +order: 14 +title: 综合案例:27 件 GLB 产线 +level: case +--- + +# 第 14 章 综合案例:27 件 GLB 产线 + +## 案例成果 + +这是前面工作的完整复盘:把 `working/GLTFmodel` 中的 27 个 GLB 参考模型, +在 Web FreeCAD 中重建为 **27 个模型 / 88 个图元部件**,并制作 18 集中文配音课程。 + +| 项目 | 结果 | +|---|---| +| 参考 GLB | 27 个(约 197 MB) | +| 重建模型 | 27 个 | +| 教学部件 | 88 个 Box/Cylinder | +| 课程 | 18 集(脚本、驱动、冒烟、成片) | +| 成片 | 18/18,MP4/WebM/VTT/SRT/海报,约 760 MB | +| 总装 | 88 条链接 | +| 审计 | 88/88 部件通过;27/27 模型 | +| 交付 | FCStd / STEP / STL / 课程页 / 参考页 / 交互页 | + +![重建结果:27 个模型、88 个部件的整线场景](./manual-assets/ch14/case/01-assembly.png) + +![参考 GLB:27 件产线参考模型](./manual-assets/ch14/case/02-reference.png) + +## 14.1 完整工作流 + +1. **参考解析**:解析 GLB JSON/BIN,确认单位(米)、轴(Z-up)、根矩阵; + 生成 `line-spec.json`(模型/部件/世界包围盒/颜色)。 +2. **测量与零件表**:E02 用参考查看器读包围盒,Spreadsheet 记录米→毫米换算。 +3. **逐工位建模**:E03–E16 按柜体、上料、输送、抓取、推料、检测、机器人、地面 + 顺序创建 88 个部件;每集保存累计检查点。 +4. **总装**:E17 创建 `LineAssembly`,插入 88 条链接。 +5. **审计与交付**:E18 对 88 个部件做包围盒/中心/颜色断言,导出 STEP/STL。 +6. **课程页**:18 个视频、分步截图、参数表、检查点下载、进度。 + +## 14.2 关键经验 + +- **先量化再建模**:参考表、部件数、包围盒先定,再动手。 +- **图元近似、尺寸精确**:复杂铸件用 Box/Cylinder 组合,逐件断言包围盒/颜色。 +- **每集一个检查点**:失败只重做该集,不推倒整条线。 +- **颜色要取证**:FCStd `Document.xml` 的 `WebDisplayColor` 保存 `#rrggbb`。 +- **大文档视口有边界**:重开 88 对象可能只渲染部分网格;最终展示用 STL + three.js。 +- **边界如实记录**:glTF 原生导入/导出不可用,参考查看用 three.js。 + +## 14.3 证据与入口 + +- 课程页:`web/teaching/cases/production-line-course.html` +- 参考页:`web/teaching/cases/production-line-reference.html` +- 交互页:`web/teaching/cases/production-line-assembly.html` +- 规格:`web/tools/line-course/line-spec.json` +- 收口状态:`web/tools/line-course/evidence/final-status.json` +- 媒体:`web/teaching/media/line-course/` + +## 自检 + +- [ ] 能说出 27/88/18 三个数字。 +- [ ] 知道参考 GLB 的 Z-up、米制约定。 +- [ ] 能解释“图元近似、尺寸精确”的验收口径。 +- [ ] 知道总装是 88 条链接。 +- [ ] 知道 glTF 原生导入是边界。 + +## 常见错误 + +1. 把 GLB 当成可直接导入的 CAD 实体。 +2. 用单个 Box 代替整台机器,失去工位结构。 +3. 不保存累计检查点,改一处就要重做全部。 +4. 只看截图不做包围盒/颜色断言。 + +## 练习 + +1. 任选一个工位,按 `line-spec.json` 重建其 2–3 个部件。 +2. 用 `Part_CheckGeometry` 检查一个部件,记录面数/三角面数。 +3. 打开交互页,按工位筛选并截图。 diff --git a/web/manual/data/capture/ch00-start-opfs.json b/web/manual/data/capture/ch00-start-opfs.json new file mode 100644 index 00000000..9ceae063 --- /dev/null +++ b/web/manual/data/capture/ch00-start-opfs.json @@ -0,0 +1,86 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:38:51.938Z", + "chapter": "ch00", + "workflow": "start-opfs", + "scenario": "manual/scenarios/ch00-start.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:38:42.991Z", + "action": "goto", + "url": "/project.html" + }, + { + "at": "2026-11-13T04:38:44.895Z", + "action": "click", + "selector": "Start" + }, + { + "at": "2026-11-13T04:38:46.753Z", + "action": "shot", + "name": "01-start-dialog", + "bytes": 95328 + }, + { + "at": "2026-11-13T04:38:46.764Z", + "action": "eval" + }, + { + "at": "2026-11-13T04:38:47.308Z", + "action": "goto", + "url": "/project.html" + }, + { + "at": "2026-11-13T04:38:48.590Z", + "action": "click", + "selector": "nav[aria-label=\"Application menus\"] details" + }, + { + "at": "2026-11-13T04:38:48.654Z", + "action": "click", + "selector": "新建 Document" + }, + { + "at": "2026-11-13T04:38:50.659Z", + "action": "eval" + }, + { + "at": "2026-11-13T04:38:50.703Z", + "action": "click", + "selector": "nav[aria-label=\"Application menus\"] details" + }, + { + "at": "2026-11-13T04:38:50.765Z", + "action": "click", + "selector": "Open / import / export" + }, + { + "at": "2026-11-13T04:38:51.937Z", + "action": "shot", + "name": "02-file-tools", + "bytes": 236537 + } + ], + "shots": [ + { + "id": "ch00/start-opfs/01-start-dialog", + "file": "manual/assets/ch00/start-opfs/01-start-dialog.png", + "bytes": 95328, + "sha256": "605dacbf90f42fd74203810d624e6a8180646b9865a15975933df98d031245f2", + "fullPage": false, + "selector": null + }, + { + "id": "ch00/start-opfs/02-file-tools", + "file": "manual/assets/ch00/start-opfs/02-file-tools.png", + "bytes": 236537, + "sha256": "13b98035ba984c9573f1e3e591046277506ca6ccbb6860708c62a7a6d20c8002", + "fullPage": true, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch05-assembly-create-insert.json b/web/manual/data/capture/ch05-assembly-create-insert.json new file mode 100644 index 00000000..e3e46189 --- /dev/null +++ b/web/manual/data/capture/ch05-assembly-create-insert.json @@ -0,0 +1,140 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:36:58.603Z", + "chapter": "ch05", + "workflow": "assembly-create-insert", + "scenario": "manual/scenarios/ch05-assembly.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:36:44.860Z", + "action": "goto", + "url": "/project.html" + }, + { + "at": "2026-11-13T04:36:46.286Z", + "action": "seed", + "file": "/home/mes123456/FreeCADWasmDev/working/FreeCAD/web/tools/line-course/checkpoints/E03.FCStd", + "name": "manual-assembly-source.FCStd" + }, + { + "at": "2026-11-13T04:36:46.992Z", + "action": "goto", + "url": "/workbench.html?module=Assembly&command=Assembly_CreateAssembly" + }, + { + "at": "2026-11-13T04:36:50.539Z", + "action": "fill", + "selector": "input[aria-label=\"Assembly document name\"]", + "value": "ManualAssembly" + }, + { + "at": "2026-11-13T04:36:50.548Z", + "action": "fill", + "selector": "input[aria-label=\"Assembly label\"]", + "value": "手动装配" + }, + { + "at": "2026-11-13T04:36:50.658Z", + "action": "shot", + "name": "01-create-assembly", + "bytes": 11672 + }, + { + "at": "2026-11-13T04:36:50.714Z", + "action": "click", + "selector": "Create" + }, + { + "at": "2026-11-13T04:36:53.219Z", + "action": "waitOptions", + "selector": "select[aria-label=\"Insert link source file\"]", + "count": 2 + }, + { + "at": "2026-11-13T04:36:53.226Z", + "action": "select", + "selector": "select[aria-label=\"Insert link source file\"]", + "label": "manual-assembly-source.FCStd" + }, + { + "at": "2026-11-13T04:36:53.272Z", + "action": "click", + "selector": "Load source" + }, + { + "at": "2026-11-13T04:36:54.282Z", + "action": "waitOptions", + "selector": "select[aria-label=\"Insert link source object\"]", + "count": 9 + }, + { + "at": "2026-11-13T04:36:54.287Z", + "action": "selectIndex", + "selector": "select[aria-label=\"Insert link source object\"]", + "index": 1 + }, + { + "at": "2026-11-13T04:36:54.319Z", + "action": "click", + "selector": "Insert" + }, + { + "at": "2026-11-13T04:36:55.132Z", + "action": "selectIndex", + "selector": "select[aria-label=\"Insert link source object\"]", + "index": 2 + }, + { + "at": "2026-11-13T04:36:55.172Z", + "action": "click", + "selector": "Insert" + }, + { + "at": "2026-11-13T04:36:56.280Z", + "action": "shot", + "name": "02-insert-links", + "bytes": 53141 + }, + { + "at": "2026-11-13T04:36:56.338Z", + "action": "click", + "selector": "Accept" + }, + { + "at": "2026-11-13T04:36:58.603Z", + "action": "shot", + "name": "03-assembly-result", + "bytes": 358031 + } + ], + "shots": [ + { + "id": "ch05/assembly-create-insert/01-create-assembly", + "file": "manual/assets/ch05/assembly-create-insert/01-create-assembly.png", + "bytes": 11672, + "sha256": "bf89108c75628eb6467decff2d50a216d9105ccf89df427a4fcecdfd865aa5d4", + "fullPage": false, + "selector": "fieldset:has-text(\"Assembly document\")" + }, + { + "id": "ch05/assembly-create-insert/02-insert-links", + "file": "manual/assets/ch05/assembly-create-insert/02-insert-links.png", + "bytes": 53141, + "sha256": "fa28a33b9da9ffa065dfd9b98397759f49ca45f093ca0460e7cd833ca910b671", + "fullPage": false, + "selector": "[aria-label=\"Insert assembly link\"]" + }, + { + "id": "ch05/assembly-create-insert/03-assembly-result", + "file": "manual/assets/ch05/assembly-create-insert/03-assembly-result.png", + "bytes": 358031, + "sha256": "9c21585f7be0570d492776d479925bd9d4605fdc53a7dc7f4c39402d9c310ed2", + "fullPage": true, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch06-spreadsheet-measure.json b/web/manual/data/capture/ch06-spreadsheet-measure.json new file mode 100644 index 00000000..27232afc --- /dev/null +++ b/web/manual/data/capture/ch06-spreadsheet-measure.json @@ -0,0 +1,59 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:00.544Z", + "chapter": "ch06", + "workflow": "spreadsheet-measure", + "scenario": "manual/scenarios/ch06-spreadsheet.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:38:53.303Z", + "action": "goto", + "url": "/project.html" + }, + { + "at": "2026-11-13T04:38:54.901Z", + "action": "click", + "selector": "nav[aria-label=\"Application menus\"] details" + }, + { + "at": "2026-11-13T04:38:55.932Z", + "action": "click", + "selector": "新建 Document" + }, + { + "at": "2026-11-13T04:38:57.940Z", + "action": "eval" + }, + { + "at": "2026-11-13T04:38:57.954Z", + "action": "select", + "selector": "select[aria-label=\"Workbench\"]", + "label": "Spreadsheet" + }, + { + "at": "2026-11-13T04:38:58.785Z", + "action": "click", + "selector": "button:has-text(\"Create spreadsheet\")" + }, + { + "at": "2026-11-13T04:39:00.544Z", + "action": "shot", + "name": "01-spreadsheet", + "bytes": 260585 + } + ], + "shots": [ + { + "id": "ch06/spreadsheet-measure/01-spreadsheet", + "file": "manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png", + "bytes": 260585, + "sha256": "64d2ce6b10e3a84b896c6db8bfbec676cd902f5dd13c9df508878edb7d039f3a", + "fullPage": true, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch07-file-tools.json b/web/manual/data/capture/ch07-file-tools.json new file mode 100644 index 00000000..3b2e7379 --- /dev/null +++ b/web/manual/data/capture/ch07-file-tools.json @@ -0,0 +1,58 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:08.709Z", + "chapter": "ch07", + "workflow": "file-tools", + "scenario": "manual/scenarios/ch07-import-export.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:01.870Z", + "action": "goto", + "url": "/project.html" + }, + { + "at": "2026-11-13T04:39:03.929Z", + "action": "click", + "selector": "nav[aria-label=\"Application menus\"] details" + }, + { + "at": "2026-11-13T04:39:05.383Z", + "action": "click", + "selector": "新建 Document" + }, + { + "at": "2026-11-13T04:39:07.388Z", + "action": "eval" + }, + { + "at": "2026-11-13T04:39:07.463Z", + "action": "click", + "selector": "nav[aria-label=\"Application menus\"] details" + }, + { + "at": "2026-11-13T04:39:07.577Z", + "action": "click", + "selector": "Open / import / export" + }, + { + "at": "2026-11-13T04:39:08.709Z", + "action": "shot", + "name": "01-file-tools", + "bytes": 236537 + } + ], + "shots": [ + { + "id": "ch07/file-tools/01-file-tools", + "file": "manual/assets/ch07/file-tools/01-file-tools.png", + "bytes": 236537, + "sha256": "13b98035ba984c9573f1e3e591046277506ca6ccbb6860708c62a7a6d20c8002", + "fullPage": true, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch08-mesh-workbench.json b/web/manual/data/capture/ch08-mesh-workbench.json new file mode 100644 index 00000000..b54bcb3f --- /dev/null +++ b/web/manual/data/capture/ch08-mesh-workbench.json @@ -0,0 +1,34 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:13.332Z", + "chapter": "ch08", + "workflow": "mesh-workbench", + "scenario": "manual/scenarios/ch08-mesh.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:10.217Z", + "action": "goto", + "url": "/workbench.html?module=Mesh" + }, + { + "at": "2026-11-13T04:39:13.332Z", + "action": "shot", + "name": "01-mesh-page", + "bytes": 174472 + } + ], + "shots": [ + { + "id": "ch08/mesh-workbench/01-mesh-page", + "file": "manual/assets/ch08/mesh-workbench/01-mesh-page.png", + "bytes": 174472, + "sha256": "7e426d2755b73aea37384b8c39f3c32165b6f9fc2989d27953b8fbae65d66a90", + "fullPage": false, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch09-bim-workbench.json b/web/manual/data/capture/ch09-bim-workbench.json new file mode 100644 index 00000000..57f68ad0 --- /dev/null +++ b/web/manual/data/capture/ch09-bim-workbench.json @@ -0,0 +1,34 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:17.642Z", + "chapter": "ch09", + "workflow": "bim-workbench", + "scenario": "manual/scenarios/ch09-bim.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:14.535Z", + "action": "goto", + "url": "/workbench.html?module=BIM" + }, + { + "at": "2026-11-13T04:39:17.642Z", + "action": "shot", + "name": "01-bim-page", + "bytes": 157010 + } + ], + "shots": [ + { + "id": "ch09/bim-workbench/01-bim-page", + "file": "manual/assets/ch09/bim-workbench/01-bim-page.png", + "bytes": 157010, + "sha256": "6a3bb6be4f66e92e9a8e721f5202286e2d1d7a00d7ba37d4eb53b8e86d1ac7e6", + "fullPage": false, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch10-cam-job.json b/web/manual/data/capture/ch10-cam-job.json new file mode 100644 index 00000000..1446fedd --- /dev/null +++ b/web/manual/data/capture/ch10-cam-job.json @@ -0,0 +1,34 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:22.609Z", + "chapter": "ch10", + "workflow": "cam-job", + "scenario": "manual/scenarios/ch10-cam.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:18.936Z", + "action": "goto", + "url": "/workbench.html?module=CAM&command=CAM_Job" + }, + { + "at": "2026-11-13T04:39:22.609Z", + "action": "shot", + "name": "01-cam-job", + "bytes": 37913 + } + ], + "shots": [ + { + "id": "ch10/cam-job/01-cam-job", + "file": "manual/assets/ch10/cam-job/01-cam-job.png", + "bytes": 37913, + "sha256": "0a648d1333ba76782cffc33a22ff873fd213437563fffff1c326b4580a4186b7", + "fullPage": false, + "selector": "fieldset:has-text(\"Create CAM Job\")" + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch11-techdraw-page.json b/web/manual/data/capture/ch11-techdraw-page.json new file mode 100644 index 00000000..c65e809b --- /dev/null +++ b/web/manual/data/capture/ch11-techdraw-page.json @@ -0,0 +1,34 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:27.634Z", + "chapter": "ch11", + "workflow": "techdraw-page", + "scenario": "manual/scenarios/ch11-techdraw.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:23.935Z", + "action": "goto", + "url": "/workbench.html?module=TechDraw&command=TechDraw_PageDefault" + }, + { + "at": "2026-11-13T04:39:27.634Z", + "action": "shot", + "name": "01-techdraw-page", + "bytes": 211190 + } + ], + "shots": [ + { + "id": "ch11/techdraw-page/01-techdraw-page", + "file": "manual/assets/ch11/techdraw-page/01-techdraw-page.png", + "bytes": 211190, + "sha256": "f633bbab0bc68674483a3b9bfe138757e5a292397d3e0493e53e512f87eb348c", + "fullPage": false, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch12-fem-workbench.json b/web/manual/data/capture/ch12-fem-workbench.json new file mode 100644 index 00000000..b93177b2 --- /dev/null +++ b/web/manual/data/capture/ch12-fem-workbench.json @@ -0,0 +1,34 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:32.602Z", + "chapter": "ch12", + "workflow": "fem-workbench", + "scenario": "manual/scenarios/ch12-fem.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:28.929Z", + "action": "goto", + "url": "/workbench.html?module=Fem&command=FEM_Analysis" + }, + { + "at": "2026-11-13T04:39:32.602Z", + "action": "shot", + "name": "01-fem-page", + "bytes": 256619 + } + ], + "shots": [ + { + "id": "ch12/fem-workbench/01-fem-page", + "file": "manual/assets/ch12/fem-workbench/01-fem-page.png", + "bytes": 256619, + "sha256": "0464b5bcaa5beb228e53ac45f93c729bf284fc86ca0e169b1a063af632fda94d", + "fullPage": false, + "selector": null + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/capture/ch13-specialist-tools.json b/web/manual/data/capture/ch13-specialist-tools.json new file mode 100644 index 00000000..14456617 --- /dev/null +++ b/web/manual/data/capture/ch13-specialist-tools.json @@ -0,0 +1,72 @@ +{ + "schema": "freecad-web-manual/capture/v1", + "generatedAt": "2026-11-13T04:39:43.426Z", + "chapter": "ch13", + "workflow": "specialist-tools", + "scenario": "manual/scenarios/ch13-specialists.json", + "origin": "http://127.0.0.1:5181", + "ok": true, + "trace": [ + { + "at": "2026-11-13T04:39:33.670Z", + "action": "goto", + "url": "/workbench.html?module=OpenSCAD&command=OpenSCAD_AddOpenSCADElement" + }, + { + "at": "2026-11-13T04:39:36.850Z", + "action": "shot", + "name": "01-openscad", + "bytes": 62326 + }, + { + "at": "2026-11-13T04:39:36.996Z", + "action": "goto", + "url": "/workbench.html?module=Robot&command=Robot_CreateRobot" + }, + { + "at": "2026-11-13T04:39:40.141Z", + "action": "shot", + "name": "02-robot", + "bytes": 8186 + }, + { + "at": "2026-11-13T04:39:40.293Z", + "action": "goto", + "url": "/workbench.html?module=Plot&command=Plot_Axes" + }, + { + "at": "2026-11-13T04:39:43.426Z", + "action": "shot", + "name": "03-plot", + "bytes": 6880 + } + ], + "shots": [ + { + "id": "ch13/specialist-tools/01-openscad", + "file": "manual/assets/ch13/specialist-tools/01-openscad.png", + "bytes": 62326, + "sha256": "ff99112c42804bfa07d598be3cafe662fbee1dba490c60a118a7f36c933658fa", + "fullPage": false, + "selector": "fieldset:has-text(\"Add OpenSCAD element\")" + }, + { + "id": "ch13/specialist-tools/02-robot", + "file": "manual/assets/ch13/specialist-tools/02-robot.png", + "bytes": 8186, + "sha256": "f329bd4b3d7fb2fc5a137dc6e0265e8d91518bcd410fdf4d67e374e0830c78d9", + "fullPage": false, + "selector": "fieldset:has-text(\"Robot\")" + }, + { + "id": "ch13/specialist-tools/03-plot", + "file": "manual/assets/ch13/specialist-tools/03-plot.png", + "bytes": 6880, + "sha256": "5a741c9ab7dda3755cef88d6acc68db93f99c83420f5ea4273af091477b1f47d", + "fullPage": false, + "selector": "fieldset:has-text(\"Figure\")" + } + ], + "pageErrors": [], + "consoleErrors": [] +} diff --git a/web/manual/data/final-status.json b/web/manual/data/final-status.json new file mode 100644 index 00000000..52bfc040 --- /dev/null +++ b/web/manual/data/final-status.json @@ -0,0 +1,49 @@ +{ + "schema": "freecad-web-manual/final-status/v1", + "generatedAt": "2026-11-13T12:50:00+08:00", + "state": "complete", + "chapters": 15, + "chaptersWithAppendix": 16, + "screenshots": 33, + "commands": 1602, + "modules": 32, + "nativeHandlers": 196, + "statusCounts": { + "modules": 32, + "commands": 1602, + "desktopRecords": 1492, + "routes": 1296, + "registryCommands": 306, + "nativeHandlers": 196, + "detailed": 312, + "overview": 1287, + "boundary": 3, + "verifiedCandidates": 73, + "screenshots": 0, + "workflows": 0 + }, + "pageCheck": { + "ok": true, + "desktopOverflow": 0, + "mobileOverflow": 0, + "brokenImages": [], + "searchHits": 4 + }, + "entry": "web/teaching/manual.html", + "url": "http://127.0.0.1:5190/manual.html", + "assets": "web/teaching/manual-assets", + "captureReports": "web/manual/data/capture", + "knownBoundaries": [ + "TechDraw 跨 Worker 文档桥", + "FEM 原生结果对象", + "CAM OpenCAMLib/完整 G-code", + "glTF 原生导入导出", + "Material 稀疏数组/Cloud 远程 S3", + "OpenSCAD 二次编译" + ], + "notes": [ + "第 3 章记录草图编辑器位于属性栏的布局边界", + "第 4 章使用独立 partdesign.html,规避 project 页 ownership handoff", + "第 8-12 章专业工作台按模块页实际任务与边界编写" + ] +} diff --git a/web/manual/data/page-check.json b/web/manual/data/page-check.json index cd2f48ff..05c1f2db 100644 --- a/web/manual/data/page-check.json +++ b/web/manual/data/page-check.json @@ -1,6 +1,6 @@ { "schema": "freecad-web-manual/page-check/v1", - "generatedAt": "2026-11-13T03:58:34.623Z", + "generatedAt": "2026-11-13T04:45:00.026Z", "url": "http://127.0.0.1:5190/manual.html", "viewports": [ { @@ -12,13 +12,13 @@ "errors": [], "failed": [], "searchHits": 4, - "chapters": 4, - "sections": 38, - "images": 16, + "chapters": 15, + "sections": 119, + "images": 33, "brokenImages": [], "commandRows": 1602, "overflow": 0, - "searchSize": 1644 + "searchSize": 1736 }, { "viewport": { @@ -29,13 +29,13 @@ "errors": [], "failed": [], "searchHits": 4, - "chapters": 4, - "sections": 38, - "images": 16, + "chapters": 15, + "sections": 119, + "images": 33, "brokenImages": [], "commandRows": 1602, "overflow": 0, - "searchSize": 1644 + "searchSize": 1736 } ], "ok": true diff --git a/web/manual/scenarios/ch00-start.json b/web/manual/scenarios/ch00-start.json new file mode 100644 index 00000000..ec30b32d --- /dev/null +++ b/web/manual/scenarios/ch00-start.json @@ -0,0 +1,87 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch00", + "workflow": "start-opfs", + "title": "start-opfs", + "actions": [ + { + "type": "goto", + "url": "/project.html" + }, + { + "type": "wait", + "ms": 1500 + }, + { + "type": "click", + "role": "button", + "name": "Start", + "exact": true + }, + { + "type": "wait", + "ms": 800 + }, + { + "type": "shot", + "name": "01-start-dialog" + }, + { + "type": "eval", + "script": "document.querySelector('dialog[aria-label=\"Start dialog\"]')?.close()" + }, + { + "type": "wait", + "ms": 300 + }, + { + "type": "goto", + "url": "/project.html" + }, + { + "type": "wait", + "ms": 1200 + }, + { + "type": "click", + "selector": "nav[aria-label=\"Application menus\"] details", + "hasText": "File", + "target": ":scope > summary" + }, + { + "type": "click", + "role": "button", + "name": "新建 Document", + "exact": true + }, + { + "type": "wait", + "ms": 2000 + }, + { + "type": "eval", + "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" + }, + { + "type": "click", + "selector": "nav[aria-label=\"Application menus\"] details", + "hasText": "File", + "target": ":scope > summary" + }, + { + "type": "click", + "role": "button", + "name": "Open / import / export", + "exact": true + }, + { + "type": "wait", + "ms": 800 + }, + { + "type": "shot", + "name": "02-file-tools", + "fullPage": true + } + ] +} diff --git a/web/manual/scenarios/ch05-assembly.json b/web/manual/scenarios/ch05-assembly.json new file mode 100644 index 00000000..45225953 --- /dev/null +++ b/web/manual/scenarios/ch05-assembly.json @@ -0,0 +1,125 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch05", + "workflow": "assembly-create-insert", + "title": "Assembly 创建装配与插入链接", + "actions": [ + { + "type": "goto", + "url": "/project.html" + }, + { + "type": "wait", + "ms": 1200 + }, + { + "type": "seed", + "file": "/home/mes123456/FreeCADWasmDev/working/FreeCAD/web/tools/line-course/checkpoints/E03.FCStd", + "name": "manual-assembly-source.FCStd" + }, + { + "type": "goto", + "url": "/workbench.html?module=Assembly&command=Assembly_CreateAssembly" + }, + { + "type": "wait", + "ms": 3500 + }, + { + "type": "fill", + "selector": "input[aria-label=\"Assembly document name\"]", + "value": "ManualAssembly" + }, + { + "type": "fill", + "selector": "input[aria-label=\"Assembly label\"]", + "value": "手动装配" + }, + { + "type": "shot", + "name": "01-create-assembly", + "selector": "fieldset:has-text(\"Assembly document\")" + }, + { + "type": "click", + "role": "button", + "name": "Create", + "exact": true + }, + { + "type": "wait", + "ms": 2500 + }, + { + "type": "waitOptions", + "selector": "select[aria-label=\"Insert link source file\"]", + "min": 2 + }, + { + "type": "select", + "selector": "select[aria-label=\"Insert link source file\"]", + "label": "manual-assembly-source.FCStd" + }, + { + "type": "click", + "role": "button", + "name": "Load source", + "exact": true + }, + { + "type": "waitOptions", + "selector": "select[aria-label=\"Insert link source object\"]", + "min": 2 + }, + { + "type": "selectIndex", + "selector": "select[aria-label=\"Insert link source object\"]", + "index": 1 + }, + { + "type": "click", + "role": "button", + "name": "Insert", + "exact": true + }, + { + "type": "wait", + "ms": 800 + }, + { + "type": "selectIndex", + "selector": "select[aria-label=\"Insert link source object\"]", + "index": 2 + }, + { + "type": "click", + "role": "button", + "name": "Insert", + "exact": true + }, + { + "type": "wait", + "ms": 1000 + }, + { + "type": "shot", + "name": "02-insert-links", + "selector": "[aria-label=\"Insert assembly link\"]" + }, + { + "type": "click", + "role": "button", + "name": "Accept", + "exact": true + }, + { + "type": "wait", + "ms": 2000 + }, + { + "type": "shot", + "name": "03-assembly-result", + "fullPage": true + } + ] +} diff --git a/web/manual/scenarios/ch06-spreadsheet.json b/web/manual/scenarios/ch06-spreadsheet.json new file mode 100644 index 00000000..be319508 --- /dev/null +++ b/web/manual/scenarios/ch06-spreadsheet.json @@ -0,0 +1,58 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch06", + "workflow": "spreadsheet-measure", + "title": "spreadsheet-measure", + "actions": [ + { + "type": "goto", + "url": "/project.html" + }, + { + "type": "wait", + "ms": 1200 + }, + { + "type": "click", + "selector": "nav[aria-label=\"Application menus\"] details", + "hasText": "File", + "target": ":scope > summary" + }, + { + "type": "click", + "role": "button", + "name": "新建 Document", + "exact": true + }, + { + "type": "wait", + "ms": 2000 + }, + { + "type": "eval", + "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" + }, + { + "type": "select", + "selector": "select[aria-label=\"Workbench\"]", + "label": "Spreadsheet" + }, + { + "type": "wait", + "ms": 800 + }, + { + "type": "click", + "selector": "button:has-text(\"Create spreadsheet\")" + }, + { + "type": "wait", + "ms": 1500 + }, + { + "type": "shot", + "name": "01-spreadsheet", + "fullPage": true + } + ] +} diff --git a/web/manual/scenarios/ch07-import-export.json b/web/manual/scenarios/ch07-import-export.json new file mode 100644 index 00000000..922a7130 --- /dev/null +++ b/web/manual/scenarios/ch07-import-export.json @@ -0,0 +1,57 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch07", + "workflow": "file-tools", + "title": "file-tools", + "actions": [ + { + "type": "goto", + "url": "/project.html" + }, + { + "type": "wait", + "ms": 1200 + }, + { + "type": "click", + "selector": "nav[aria-label=\"Application menus\"] details", + "hasText": "File", + "target": ":scope > summary" + }, + { + "type": "click", + "role": "button", + "name": "新建 Document", + "exact": true + }, + { + "type": "wait", + "ms": 2000 + }, + { + "type": "eval", + "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" + }, + { + "type": "click", + "selector": "nav[aria-label=\"Application menus\"] details", + "hasText": "File", + "target": ":scope > summary" + }, + { + "type": "click", + "role": "button", + "name": "Open / import / export", + "exact": true + }, + { + "type": "wait", + "ms": 800 + }, + { + "type": "shot", + "name": "01-file-tools", + "fullPage": true + } + ] +} diff --git a/web/manual/scenarios/ch08-mesh.json b/web/manual/scenarios/ch08-mesh.json new file mode 100644 index 00000000..e0d69f67 --- /dev/null +++ b/web/manual/scenarios/ch08-mesh.json @@ -0,0 +1,20 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch08", + "workflow": "mesh-workbench", + "title": "mesh-workbench", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=Mesh" + }, + { + "type": "wait", + "ms": 3000 + }, + { + "type": "shot", + "name": "01-mesh-page" + } + ] +} diff --git a/web/manual/scenarios/ch09-bim.json b/web/manual/scenarios/ch09-bim.json new file mode 100644 index 00000000..8ae5e852 --- /dev/null +++ b/web/manual/scenarios/ch09-bim.json @@ -0,0 +1,20 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch09", + "workflow": "bim-workbench", + "title": "bim-workbench", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=BIM" + }, + { + "type": "wait", + "ms": 3000 + }, + { + "type": "shot", + "name": "01-bim-page" + } + ] +} diff --git a/web/manual/scenarios/ch10-cam.json b/web/manual/scenarios/ch10-cam.json new file mode 100644 index 00000000..15ba565c --- /dev/null +++ b/web/manual/scenarios/ch10-cam.json @@ -0,0 +1,21 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch10", + "workflow": "cam-job", + "title": "cam-job", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=CAM&command=CAM_Job" + }, + { + "type": "wait", + "ms": 3500 + }, + { + "type": "shot", + "name": "01-cam-job", + "selector": "fieldset:has-text(\"Create CAM Job\")" + } + ] +} diff --git a/web/manual/scenarios/ch11-techdraw.json b/web/manual/scenarios/ch11-techdraw.json new file mode 100644 index 00000000..d3e7b0a3 --- /dev/null +++ b/web/manual/scenarios/ch11-techdraw.json @@ -0,0 +1,20 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch11", + "workflow": "techdraw-page", + "title": "techdraw-page", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=TechDraw&command=TechDraw_PageDefault" + }, + { + "type": "wait", + "ms": 3500 + }, + { + "type": "shot", + "name": "01-techdraw-page" + } + ] +} diff --git a/web/manual/scenarios/ch12-fem.json b/web/manual/scenarios/ch12-fem.json new file mode 100644 index 00000000..d0507f02 --- /dev/null +++ b/web/manual/scenarios/ch12-fem.json @@ -0,0 +1,20 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch12", + "workflow": "fem-workbench", + "title": "fem-workbench", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=Fem&command=FEM_Analysis" + }, + { + "type": "wait", + "ms": 3500 + }, + { + "type": "shot", + "name": "01-fem-page" + } + ] +} diff --git a/web/manual/scenarios/ch13-specialists.json b/web/manual/scenarios/ch13-specialists.json new file mode 100644 index 00000000..f0df6937 --- /dev/null +++ b/web/manual/scenarios/ch13-specialists.json @@ -0,0 +1,47 @@ +{ + "schema": "freecad-web-manual/scenario/v1", + "chapter": "ch13", + "workflow": "specialist-tools", + "title": "specialist-tools", + "actions": [ + { + "type": "goto", + "url": "/workbench.html?module=OpenSCAD&command=OpenSCAD_AddOpenSCADElement" + }, + { + "type": "wait", + "ms": 3000 + }, + { + "type": "shot", + "name": "01-openscad", + "selector": "fieldset:has-text(\"Add OpenSCAD element\")" + }, + { + "type": "goto", + "url": "/workbench.html?module=Robot&command=Robot_CreateRobot" + }, + { + "type": "wait", + "ms": 3000 + }, + { + "type": "shot", + "name": "02-robot", + "selector": "fieldset:has-text(\"Robot\")" + }, + { + "type": "goto", + "url": "/workbench.html?module=Plot&command=Plot_Axes" + }, + { + "type": "wait", + "ms": 3000 + }, + { + "type": "shot", + "name": "03-plot", + "selector": "fieldset:has-text(\"Figure\")" + } + ] +} diff --git a/web/teaching/manual-assets/ch00/start-opfs/01-start-dialog.png b/web/teaching/manual-assets/ch00/start-opfs/01-start-dialog.png new file mode 100644 index 00000000..a3333694 Binary files /dev/null and b/web/teaching/manual-assets/ch00/start-opfs/01-start-dialog.png differ diff --git a/web/teaching/manual-assets/ch00/start-opfs/02-file-tools.png b/web/teaching/manual-assets/ch00/start-opfs/02-file-tools.png new file mode 100644 index 00000000..de27a499 Binary files /dev/null and b/web/teaching/manual-assets/ch00/start-opfs/02-file-tools.png differ diff --git a/web/teaching/manual-assets/ch05/assembly-create-insert/01-create-assembly.png b/web/teaching/manual-assets/ch05/assembly-create-insert/01-create-assembly.png new file mode 100644 index 00000000..ed90a1fa Binary files /dev/null and b/web/teaching/manual-assets/ch05/assembly-create-insert/01-create-assembly.png differ diff --git a/web/teaching/manual-assets/ch05/assembly-create-insert/02-insert-links.png b/web/teaching/manual-assets/ch05/assembly-create-insert/02-insert-links.png new file mode 100644 index 00000000..33fa6445 Binary files /dev/null and b/web/teaching/manual-assets/ch05/assembly-create-insert/02-insert-links.png differ diff --git a/web/teaching/manual-assets/ch05/assembly-create-insert/03-assembly-result.png b/web/teaching/manual-assets/ch05/assembly-create-insert/03-assembly-result.png new file mode 100644 index 00000000..5d0029dd Binary files /dev/null and b/web/teaching/manual-assets/ch05/assembly-create-insert/03-assembly-result.png differ diff --git a/web/teaching/manual-assets/ch06/spreadsheet-measure/01-spreadsheet.png b/web/teaching/manual-assets/ch06/spreadsheet-measure/01-spreadsheet.png new file mode 100644 index 00000000..9bb89eb1 Binary files /dev/null and b/web/teaching/manual-assets/ch06/spreadsheet-measure/01-spreadsheet.png differ diff --git a/web/teaching/manual-assets/ch07/file-tools/01-file-tools.png b/web/teaching/manual-assets/ch07/file-tools/01-file-tools.png new file mode 100644 index 00000000..de27a499 Binary files /dev/null and b/web/teaching/manual-assets/ch07/file-tools/01-file-tools.png differ diff --git a/web/teaching/manual-assets/ch08/mesh-workbench/01-mesh-page.png b/web/teaching/manual-assets/ch08/mesh-workbench/01-mesh-page.png new file mode 100644 index 00000000..fc1ddaea Binary files /dev/null and b/web/teaching/manual-assets/ch08/mesh-workbench/01-mesh-page.png differ diff --git a/web/teaching/manual-assets/ch09/bim-workbench/01-bim-page.png b/web/teaching/manual-assets/ch09/bim-workbench/01-bim-page.png new file mode 100644 index 00000000..e81fe798 Binary files /dev/null and b/web/teaching/manual-assets/ch09/bim-workbench/01-bim-page.png differ diff --git a/web/teaching/manual-assets/ch10/cam-job/01-cam-job.png b/web/teaching/manual-assets/ch10/cam-job/01-cam-job.png new file mode 100644 index 00000000..c4483159 Binary files /dev/null and b/web/teaching/manual-assets/ch10/cam-job/01-cam-job.png differ diff --git a/web/teaching/manual-assets/ch11/techdraw-page/01-techdraw-page.png b/web/teaching/manual-assets/ch11/techdraw-page/01-techdraw-page.png new file mode 100644 index 00000000..83b37a01 Binary files /dev/null and b/web/teaching/manual-assets/ch11/techdraw-page/01-techdraw-page.png differ diff --git a/web/teaching/manual-assets/ch12/fem-workbench/01-fem-page.png b/web/teaching/manual-assets/ch12/fem-workbench/01-fem-page.png new file mode 100644 index 00000000..a8a597ce Binary files /dev/null and b/web/teaching/manual-assets/ch12/fem-workbench/01-fem-page.png differ diff --git a/web/teaching/manual-assets/ch13/specialist-tools/01-openscad.png b/web/teaching/manual-assets/ch13/specialist-tools/01-openscad.png new file mode 100644 index 00000000..65860d24 Binary files /dev/null and b/web/teaching/manual-assets/ch13/specialist-tools/01-openscad.png differ diff --git a/web/teaching/manual-assets/ch13/specialist-tools/02-robot.png b/web/teaching/manual-assets/ch13/specialist-tools/02-robot.png new file mode 100644 index 00000000..c9db0340 Binary files /dev/null and b/web/teaching/manual-assets/ch13/specialist-tools/02-robot.png differ diff --git a/web/teaching/manual-assets/ch13/specialist-tools/03-plot.png b/web/teaching/manual-assets/ch13/specialist-tools/03-plot.png new file mode 100644 index 00000000..5279dbe9 Binary files /dev/null and b/web/teaching/manual-assets/ch13/specialist-tools/03-plot.png differ diff --git a/web/teaching/manual-assets/ch14/case/01-assembly.png b/web/teaching/manual-assets/ch14/case/01-assembly.png new file mode 100644 index 00000000..e5e617a7 Binary files /dev/null and b/web/teaching/manual-assets/ch14/case/01-assembly.png differ diff --git a/web/teaching/manual-assets/ch14/case/02-reference.png b/web/teaching/manual-assets/ch14/case/02-reference.png new file mode 100644 index 00000000..22569075 Binary files /dev/null and b/web/teaching/manual-assets/ch14/case/02-reference.png differ diff --git a/web/teaching/manual.html b/web/teaching/manual.html index ab911ccd..fd60fa9c 100644 --- a/web/teaching/manual.html +++ b/web/teaching/manual.html @@ -42,8 +42,8 @@ th, td { border-bottom:1px solid var(--line); padding:5px 7px; text-align:left; vertical-align:top; } th { color:var(--accent); } code, pre { background:#0b1014; border:1px solid #22303a; border-radius:5px; } - code { padding:1px 4px; font-size:12.5px; } - pre { padding:10px; overflow:auto; } + code { padding:1px 4px; font-size:12.5px; overflow-wrap:anywhere; } + pre { padding:10px; overflow:auto; max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; } blockquote { border-left:3px solid var(--warn); margin:12px 0; padding:4px 12px; color:var(--warn); background:#1d1a1210; } .cmd { font-family:ui-monospace,monospace; font-size:12px; color:#9fd6de; } .badge { display:inline-block; border-radius:4px; padding:0 6px; font-size:11px; border:1px solid var(--line); } @@ -60,7 +60,7 @@ nav.sidebar { position:fixed; z-index:35; top:53px; left:0; width:280px; background:#0d1318; transform:translateX(-100%); transition:transform .2s; } nav.sidebar.open { transform:translateX(0); } #menu-toggle { display:inline-block; } - main { padding:18px 14px 60px; } + main { padding:18px 14px 60px; overflow-x:clip; } header.top { gap:8px; padding:8px 10px; } header.top h1 { font-size:14px; max-width:34vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } #search { width:auto; flex:1; min-width:0; margin-left:6px; } @@ -81,6 +81,9 @@

  1. + + 学习目标0.1 启动与入口0.2 文档与工作台0.3 OPFS 文件生命周期0.4 怎么用这本手册自检常见错误练习 +
  2. 学习目标1.1 界面分区1.2 新建文档1.3 创建第一个对象1.4 属性面板与 Placement1.5 视口导航1.6 保存到 OPFS自检常见错误练习
  3. @@ -92,10 +95,131 @@
  4. 学习目标4.1 PartDesign 页面与 Body4.2 创建草图与矩形4.3 Pad:把草图拉成实体4.4 后续特征的工作顺序4.5 命令速查自检常见错误练习 -
+
  • + + 学习目标5.1 创建装配文档5.2 插入零件链接5.3 装配结果5.4 关节与求解自检常见错误练习 +
  • + + 学习目标6.1 Spreadsheet 参数表6.2 Measure6.3 Inspection6.4 Material 与 Appearance自检常见错误练习 +
  • + + 学习目标7.1 文件工具面板7.2 导入7.3 导出7.4 glTF/GLB 边界自检常见错误练习 +
  • + + 能力概览8.1 网格工作流8.2 网格转实体8.3 点云与逆向边界与注意自检常见错误练习 +
  • + + 能力概览9.1 建筑项目工作流9.2 轴网与尺寸9.3 当前 Web 边界自检常见错误练习 +
  • + + 能力概览10.1 建立 CAM Job10.2 生成路径10.3 当前 Web 边界自检常见错误练习 +
  • + + 能力概览11.1 出图工作流11.2 当前 Web 边界自检常见错误练习 +
  • + + 能力概览12.1 静力分析工作流12.2 当前 Web 边界自检常见错误练习 +
  • + + 能力概览13.1 OpenSCAD 元素13.2 Robot13.3 Plot13.4 其他模块与边界自检常见错误练习 +
  • + + 案例成果14.1 完整工作流14.2 关键经验14.3 证据与入口自检常见错误练习 +
  • 附录:命令索引
  • -

    第 1 章 界面、文档与视图

    +

    第 0 章 导读、启动与 OPFS

    +

    学习目标

    +
      +
    • 知道 Web FreeCAD 的入口、工作台与文档模型。
    • +
    • 理解 OPFS 是默认存储位置,下载必须显式触发。
    • +
    • 找到本手册的使用方式、命令索引与缺口说明。
    • +
    +

    0.1 启动与入口

    +
      +
    • 应用:http://127.0.0.1:5181/
    • +
    • 项目页:/project.html?workbench=Part
    • +
    • PartDesign:/partdesign.html
    • +
    • 工作台入口:/workbench.html?module=<Module>&command=<Command>
    • +
    • 教学服务:http://127.0.0.1:5190/
    • +
    +

    点左上角 Start 打开启动面板:新建文档、打开 OPFS 文档、打开最近文件。

    +

    Start 启动面板

    +

    0.2 文档与工作台

    +

    Web FreeCAD 有多个文档所有者:

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    页面文档所有者适用
    project.htmlPart / DocumentProbePart、Sketcher、Spreadsheet、Assembly
    partdesign.htmlPartDesignBody、Sketch、Pad/Pocket
    workbench.html模块 Worker各模块命令与任务
    project.html?workbench=AssemblyAssembly装配
    +

    项目页的 Part 文档不能直接切换到 PartDesign,会出现 ownership handoff 提示; +学习 PartDesign 请用 partdesign.html。

    +

    0.3 OPFS 文件生命周期

    +
      +
    1. 新建/编辑文档在浏览器内存中。
    2. +
    3. 点“保存 FCStd 到 OPFS”写入浏览器私有文件系统。
    4. +
    5. 状态栏出现 Saved <name>.FCStd to OPFS。
    6. +
    7. 需要本地副本时,点“下载到本地”或导出面板的下载按钮。
    8. +
    9. 导入/导出文件默认也写 freecad-exports 目录。
    10. +
    +

    文件工具:导入、导出、OPFS 保存/打开与下载

    +
    +

    Web 版不会自动下载文件;找不到导出结果时先看 OPFS 列表,而不是本地下载目录。

    +
    +

    0.4 怎么用这本手册

    +
      +
    • 第 1–7 章是核心建模与交付流程,建议按顺序跟练。
    • +
    • 第 8–13 章是专业工作台,每章先看能力概览与边界,再做 1–2 个工作流。
    • +
    • 第 14 章是 27 件 GLB 产线综合案例。
    • +
    • 附录是 1602 条命令索引,可按模块/状态筛选;状态为“边界”的命令当前 Web 端受限。
    • +
    +

    每节包含:学习目标、入口、分步操作、参数表、截图、自检、常见错误、练习。 +截图全部来自真实 Web 页面;0 pageError/consoleError 才写入。

    +

    自检

    +
      +
    • 能打开 Start 面板并新建文档。
    • +
    • 能找到 OPFS 保存按钮与下载按钮。
    • +
    • 知道 project/partdesign/workbench 三个入口的区别。
    • +
    • 能在附录命令索引中搜索一个命令。
    • +
    +

    常见错误

    +
      +
    1. 把“保存到 OPFS”当成浏览器下载。
    2. +
    3. 在 project 页强行切 PartDesign。
    4. +
    5. 用 file:// 打开 HTML 导致 Worker/WASM 加载失败。
    6. +
    7. 忽略状态栏的保存/导入结果。
    8. +
    +

    练习

    +
      +
    1. 新建文档,保存到 OPFS,刷新页面后从 Start 面板重新打开。
    2. +
    3. 在附录搜索 PartDesign_Pad,记录它所属章节与状态。
    4. +
    + +

    第 1 章 界面、文档与视图

    学习目标

    • 认清 Web FreeCAD 的菜单栏、工作台、对象树、属性面板和三维视口。
    • @@ -117,7 +241,7 @@ 本课程一律使用毫米作为长度单位;属性面板里的 Length/Width/Height 都按毫米填写。

      1.3 创建第一个对象

      打开 Part → Primitives → Box,在任务面板填入:

      - +
      @@ -136,7 +260,7 @@ -
      参数Height 20 mm
      +

      点“应用尺寸并重算”,再把对象标签改成 ManualCube。

      创建 60 × 40 × 20 的 Box,并在对象树中重命名

      1.4 属性面板与 Placement

      @@ -210,7 +334,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, 自动建立 Cut1,属性面板显示 Operation=Cut、Base=PartBase、Tool=Cylinder1。

      Cut 结果:通孔、体积 81862.8 mm³、7 个面、124 个三角面

      检查结果:

      - +
      @@ -233,7 +357,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
      指标包围盒 80 × 60 × 20 mm
      +

      如果体积仍等于 96000,说明圆柱没有与底板相交:检查圆柱的高度与 Z 位置。

      2.4 检查几何

      选中 Cut1,打开 Part → Inspection → Check Geometry,勾选对象后点 “Check shapes”。 @@ -241,7 +365,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,

      CheckGeometry 任务:选择 Cut1 并执行检查

      检查后的结果视图

      2.5 其他 Part 工具速查

      - +
      @@ -299,7 +423,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
      组Part_ColorPerFace / Part_SectionCut 逐面上色、剖切
      +

      完整命令与状态见附录“命令索引”。

      自检

        @@ -333,7 +457,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,

      3.1 新建草图

      在 Part 工作台打开 Part → Sketcher → New Sketch,任务面板会询问:

      - +
      @@ -360,7 +484,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
      参数Reverse 反向
      +

      选 Base plane、XY、Offset 0,点 OK。

      New Sketch 任务:名称、基准面与偏移

      3.2 草图编辑器

      @@ -410,7 +534,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,

    关闭后草图仍保留在对象树中,可随时双击重新编辑。

    3.6 Sketcher 命令速查

    - +
    @@ -445,7 +569,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
    组视图/吸附 Grid、Snap、SwitchVirtualSpace、LeaveSketch
    +

    完整列表见附录命令索引(模块 Sketcher)。

    自检

      @@ -502,7 +626,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,

      草图必须在 Body 内、且轮廓封闭;否则 Pad/Pocket 会提示没有可用 Profile。

      4.3 Pad:把草图拉成实体

      点“Pad”打开基于草图的特征面板:

      - +
      @@ -541,7 +665,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
      参数Reverse 不勾选
      +

      Pad 任务:Profile、Length、Side 与 Taper

      点“创建 Pad”,Body 内出现 Pad1,视口显示拉伸后的实体。

      Pad 结果:矩形拉伸为实体

      @@ -557,7 +681,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,

      典型练习:在 Pad1 的顶面新建草图 → 画圆 → Pocket 贯穿 → 得到带孔实体。

      4.5 命令速查

      - +
      @@ -588,7 +712,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10, -
      组基准/引用 PartDesign_CompDatums、PartDesign_ShapeBinder、PartDesign_Clone、PartDesign_Boolean
      +

      完整状态见附录命令索引(模块 PartDesign)。

      自检

        @@ -611,6 +735,960 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,
      • 把 Pad 的 Length 从 10 改为 20,观察体积与包围盒变化。
      • 在 Pad1 顶面新建草图,画一个圆,用 Pocket 做通孔。
      • 对 Pad1 的一条边做 Fillet,半径 3 mm,再改回 1 mm 比较。
      • + + +

        第 5 章 Assembly 装配

        +

        学习目标

        +
          +
        • 在 Assembly 工作台创建装配文档。
        • +
        • 从 OPFS 中的 FCStd 源文件插入零件链接,理解“链接”不是复制几何。
        • +
        • 认识 Ground、Joint、Solve、Exploded、BOM、Simulation 的用途。
        • +
        • 能判断装配失败是源文件、链接还是求解器问题。
        • +
        +

        5.1 创建装配文档

        +

        打开 Assembly 工作台:

        +

        /workbench.html?module=Assembly&command=Assembly_CreateAssembly

        +

        在 “Assembly document” 任务里填写:

        +
        + + + + + + + + + + + + + + +
        参数本例
        Assembly document nameManualAssembly
        Assembly label手动装配
        +

        点 Create。装配文档与零件文档分开保存;装配里保存的是链接与关节。

        +

        Assembly 创建任务:文档名与标签

        +

        5.2 插入零件链接

        +

        创建后自动进入 Insert Link 任务:

        +
          +
        1. Source 选择 OPFS 中的 manual-assembly-source.FCStd。
        2. +
        3. 点 “Load source”,读取源文件里的对象列表。
        4. +
        5. Object 选择 CabinetA_P01,点 Insert。
        6. +
        7. 再选择 CabinetA_P02,点 Insert。
        8. +
        9. 可设置 Position X/Y/Z;Rigid link 表示刚性链接。
        10. +
        11. 点 Accept 完成。
        12. +
        +

        Insert Link:源文件、对象与 2 条已插入链接

        +

        插入成功后,列表会显示:

        +
        CabinetA_P01 → Component (manual_assembly_source/Box)
        +CabinetA_P02 → Component001 (manual_assembly_source/Box001)
        +
        +
        +

        源文件必须先在 OPFS 中。Web 版不能用本地绝对路径直接引用外部 FCStd。

        +
        +

        5.3 装配结果

        +

        Accept 后,Assemblies 面板出现 ManualAssembly,其下是组件链接。 +双击组件可激活/编辑;链接与源文档保持关联,改源文件后装配会提示更新。

        +

        装配结果:ManualAssembly 与两个组件

        +

        5.4 关节与求解

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        命令用途
        Assembly_ToggleGrounded固定一个组件,作为装配基准
        Assembly_CreateJointFixed固定关节
        Assembly_CreateJointRevolute旋转关节
        Assembly_CreateJointSlider滑动关节
        Assembly_CreateJointBall球关节
        Assembly_CreateJointDistance距离关节
        Assembly_CreateJointAngle角度关节
        Assembly_CreateJointGears / Belt / RackPinion / Screw齿轮/带/齿条/丝杠
        Assembly_SolveAssembly求解当前关节约束
        Assembly_CreateView爆炸视图
        Assembly_CreateBomBOM 物料清单
        Assembly_CreateSimulation运动仿真
        Assembly_ExportASMT导出装配
        +

        典型顺序:插入组件 → Ground 基准件 → 建关节(选两个组件与子元素)→ Solve → +检查 Solver messages → 爆炸/BOM/仿真 → 导出。

        +

        自检

        +
          +
        • Assemblies 面板有 ManualAssembly。
        • +
        • Insert Link 列表有 2 条链接。
        • +
        • 源文件显示为 manual-assembly-source.FCStd。
        • +
        • 能打开 Joint 面板并看到 Component 1/2 与 Subelement。
        • +
        • Solve 后 Solver messages 没有 malformed/redundant 错误。
        • +
        +

        常见错误

        +
          +
        1. 源文件不在 OPFS,Source 下拉框为空。
        2. +
        3. 只插入一个组件就建关节,缺少配对对象。
        4. +
        5. 重复点击 Insert,产生重复链接。
        6. +
        7. 没有 Ground 就 Solve,整个装配漂移。
        8. +
        9. 改源文件后未更新链接,装配仍显示旧几何。
        10. +
        +

        练习

        +
          +
        1. 插入第三个组件 CabinetA_P03。
        2. +
        3. 把 CabinetA_P01 设为 Ground,再建一个 Fixed 关节连接 P01/P02。
        4. +
        5. 点 Solve,记录 Solver messages 中的 dof 与错误数量。
        6. +
        + +

        第 6 章 测量、检查、材质与表格

        +

        学习目标

        +
          +
        • 用 Measure 读取距离、角度与质量属性。
        • +
        • 用 Inspection 做元素/可视化检查。
        • +
        • 用 Material/Appearance 设置材质与外观。
        • +
        • 用 Spreadsheet 建立参数表、别名与公式。
        • +
        +

        6.1 Spreadsheet 参数表

        +

        切换工作台到 Spreadsheet,点 “Create spreadsheet”。表格支持:

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        功能命令/操作
        新建表Spreadsheet_CreateSheet
        单元格编辑双击单元格,输入内容
        别名Spreadsheet_SetAlias
        合并/拆分MergeCells / SplitCell
        对齐AlignLeft/Center/Right
        样式StyleBold / StyleItalic / StyleUnderline
        导入/导出Spreadsheet_Import / Export
        +

        公式以 = 开头;表达式可引用其他单元格,例如 =B2+C2。零件尺寸、Pad 长度、 +阵列数量都可以绑定到表格别名,实现“改表驱动模型”。

        +

        Spreadsheet:表格、公式与样式工具

        +

        6.2 Measure

        +
        + + + + + + + + + + + + + + + + + + + + + + +
        命令用途
        Std_Measure距离/角度测量
        Std_MassProperties体积、面积、质量、质心
        measure.measurementApi通过 API 读取测量结果
        measure.objectFamily对象级测量
        +

        在项目页 Tasks 区点 “Std_Measure — Measure” 或 “Std_MassProperties — Mass properties” +打开任务,选择两个对象/子元素后读取结果。

        +

        6.3 Inspection

        +
          +
        • Inspection_InspectElement:检查面/边/顶点信息。
        • +
        • Inspection_VisualInspection:可视化检查(曲率/偏差)。
        • +
        • 任务面板会列出选中元素的数量、类型与几何数据。
        • +
        +

        6.4 Material 与 Appearance

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        命令用途
        Std_SetAppearance设置显示颜色/材质
        Std_SetMaterial指定材料
        Material_Edit编辑材料属性
        Materials_InspectAppearance检查外观
        Materials_InspectMaterial检查材料
        +

        颜色会写入 FCStd 的 WebDisplayColor,保存后重新打开仍保留。 +材料原生库在 Web 端仍有 API 兼容边界;以界面任务的实际可用项为准。

        +

        自检

        +
          +
        • Spreadsheet 能创建、输入文本/数字/公式。
        • +
        • 公式 =B2+C2 能随 B2 变化。
        • +
        • 能打开 Measure 或 MassProperties 任务。
        • +
        • 能设置对象颜色并在保存后回开确认。
        • +
        • 知道 Inspection 的两个命令。
        • +
        +

        常见错误

        +
          +
        1. 公式单元格输入后没有按 Enter/Apply。
        2. +
        3. 测量时未选择对象,任务显示空结果。
        4. +
        5. 只改显示颜色但没有触发应用,保存后丢失。
        6. +
        7. 把表格别名与对象属性混用却没建立绑定。
        8. +
        +

        练习

        +
          +
        1. 建一张 3 行参数表,用公式计算长×宽。
        2. +
        3. 测量一个 Box 的体积与质心,与属性面板对照。
        4. +
        5. 给两个对象设置不同颜色,保存后重新打开检查。
        6. +
        + +

        第 7 章 导入导出与 OPFS

        +

        学习目标

        +
          +
        • 从文件工具导入 STEP/IGES/BREP/PLMXML/StepZ 与网格文件。
        • +
        • 导出 STEP/BREP/IGES/STL 等格式到 OPFS。
        • +
        • 区分“保存 FCStd”“导出交换格式”“下载到本地”三件事。
        • +
        • 知道 glTF/GLB 原生导入导出的当前边界。
        • +
        +

        7.1 文件工具面板

        +

        项目页 File → Open / import / export 会打开右侧文件工具,包含:

        +
          +
        • 导入:Read BREP、Import STEP、Import IGES、Import glTF、Import PLMXML、 +Import compressed STEP、OpenSCAD/JT/PLMXML 文档。
        • +
        • 导出:Native export format 选择 STEP/BREP/IGES/STL,点“导出选中对象”。
        • +
        • OPFS:保存 FCStd、下载 FCStd、从 OPFS 导入、刷新导出件/文档、打开文档。
        • +
        +

        文件工具:导入、导出与 OPFS 列表

        +

        7.2 导入

        +
          +
        1. 新建/打开目标文档。
        2. +
        3. 在文件工具选择格式或点对应导入按钮。
        4. +
        5. 选择本地文件;Web 版会读入内核并生成对象。
        6. +
        7. 查看状态栏与对象树;失败时记录 error 文本。
        8. +
        +

        格式要点:

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        格式说明
        STEP最通用的实体交换格式,推荐交付
        IGES曲面/线框较多,实体质量取决于源文件
        BREPOCCT 原生边界表示,适合调试
        PLMXML/StepZ装配/压缩 STEP 变体
        STL/OBJ/3MF网格;导入后是 Mesh/Part 形状,不是参数化特征
        +

        7.3 导出

        +
          +
        1. 选中要导出的对象(可多选)。
        2. +
        3. 选择 Native export format。
        4. +
        5. 点“导出选中对象”。
        6. +
        7. 在 OPFS freecad-exports 列表确认新文件。
        8. +
        9. 需要本地副本时点“下载”。
        10. +
        +
        +

        OPFS 是默认落盘位置;未点下载时浏览器不会弹出保存对话框。

        +
        +

        7.4 glTF/GLB 边界

        +

        Web 内核的 glTF Reader/Writer 路径存在,但当前 OCCT WASM 构建 +USE_RAPIDJSON=OFF,原生导入/导出不可用。参考模型查看使用 three.js +(第 14 章产线案例),不作为 CAD 导入/导出。手册把该命令标注为“边界”。

        +

        自检

        +
          +
        • 能打开文件工具并看到导入/导出/OPFS 三组控件。
        • +
        • 能导出选中对象为 STEP 或 STL。
        • +
        • 能在 OPFS 列表找到导出文件。
        • +
        • 知道 glTF 原生导入不可用。
        • +
        • 能区分 FCStd 保存与 STEP 导出。
        • +
        +

        常见错误

        +
          +
        1. 未选中对象就点导出,得到空文件。
        2. +
        3. 导出后去本地下载目录找,实际在 OPFS。
        4. +
        5. 把 STL 当参数化实体继续编辑;它只是网格。
        6. +
        7. 用 glTF 导入失败后误判为文件损坏,实际是构建边界。
        8. +
        +

        练习

        +
          +
        1. 建一个 Box,导出 STEP 与 STL,比较两个文件大小。
        2. +
        3. 在 OPFS 列表中删除一个导出文件,再重新导出。
        4. +
        5. 导入一个 STEP,检查对象树与包围盒。
        6. +
        + +

        第 8 章 网格、点、逆向与曲面

        +

        能力概览

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        模块主要能力命令示例
        Mesh导入/导出、从形状生成网格、布尔、抽稀、平滑、重网格、截面Mesh_Import、Mesh_FromPartShape、Mesh_Boolean、Mesh_Decimating、Mesh_RemeshGmsh
        MeshPart网格转形状、修剪、分段、评估MeshPart_CreateShape、MeshPart_Trim、MeshPart_Sections
        Points点云导入/导出、合并、从网格取点Points_Import、Points_Merge、Points_FromMesh
        ReverseEngineering近似曲面/分割/拟合ReverseEngineering_Approximation、Segmentation
        Surface填充、GeomFill、边界曲面Surface_Filling、Surface_GeomFillSurface
        +

        Mesh 模块页面:命令清单与 Worker 状态

        +

        8.1 网格工作流

        +
          +
        1. 在 Part/PartDesign 建一个实体。
        2. +
        3. 打开 Mesh 工作台,使用 Mesh_FromPartShape 生成网格。
        4. +
        5. 用 Mesh_Evaluation 查看三角面数、体积、边界。
        6. +
        7. 需要轻量化时用 Mesh_Decimating,再 Mesh_Export 到 STL/OBJ/3MF。
        8. +
        +
        +

        当前 Web 构建的 Mesh 模块页会显示 boundary · no worker。能用的入口以 +项目页 Part 的 “Shape From Mesh / Points From Shape” 与 Import 的网格路径为准; +不能用的命令在附录标为边界,不写成可用。

        +
        +

        8.2 网格转实体

        +
          +
        • Part_ShapeFromMesh:把 Mesh 转为 Part 形状。
        • +
        • Part_MakeSolid:把封闭壳转为实体。
        • +
        • MeshPart_CreateShape:带公差/缝合参数的转换。
        • +
        • 转换后仍需 Part_CheckGeometry 检查有效性。
        • +
        +

        8.3 点云与逆向

        +
          +
        1. Points_Import 读入点云。
        2. +
        3. Points_Merge 合并多个点云。
        4. +
        5. 逆向/曲面模块做分割与拟合;结果为近似曲面,需人工检查偏差。
        6. +
        +

        边界与注意

        +
          +
        • Mesh 的无 Worker 命令不能从模块页直接执行;不要把它们当作已通过功能。
        • +
        • 网格式导出(STL/OBJ/3MF)不含参数化历史,不能反向恢复 Pad/Pocket。
        • +
        • 点云/逆向结果通常是非参数曲面,后续编辑能力有限。
        • +
        +

        自检

        +
          +
        • 能说出 Mesh/MeshPart/Points/ReverseEngineering/Surface 各 1 个命令。
        • +
        • 能从实体生成网格并查看三角面数。
        • +
        • 知道 Mesh 模块页的 boundary 标记含义。
        • +
        • 能把网格转为 Part 形状并检查有效性。
        • +
        +

        常见错误

        +
          +
        1. 把网格当实体做布尔,结果出现开放边。
        2. +
        3. 抽稀过度导致尺寸/特征丢失。
        4. +
        5. 未检查网格封闭性就转实体。
        6. +
        7. 认为 STL 可以恢复参数化特征。
        8. +
        +

        练习

        +
          +
        1. 建一个 Box,生成网格,记录三角面数。
        2. +
        3. 抽稀 50%,比较体积与包围盒误差。
        4. +
        5. 把网格转 Part 形状并跑 CheckGeometry。
        6. +
        + +

        第 9 章 BIM 建筑信息模型

        +

        能力概览

        +

        BIM 工作台把建筑构件组织为楼层/建筑/场地层级,并支持 IFC 数据:

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        类别命令
        项目结构Arch_Site、Arch_Building、Arch_Floor
        墙/结构Arch_Wall、Arch_Structure、BIM_Column、BIM_Beam、BIM_Slab
        门窗Arch_Window、Arch_Door
        屋顶/面板/框架Arch_Roof、Arch_Panel、Arch_Frame
        轴网/尺寸Arch_Axis、Draft_Dimension
        IFCBIM_IfcExplorer、BIM_IfcOpenShellUpdate、BIM_Windows
        学习BIM_Tutorial
        +

        BIM 模块页面:命令清单、Worker 与 GUI 依赖

        +

        9.1 建筑项目工作流

        +
          +
        1. 新建文档,创建 Site(场地)。
        2. +
        3. 在场地内创建 Building,再建 Floor。
        4. +
        5. 在楼层内画墙:Arch_Wall,设置长度/高度/厚度/对齐。
        6. +
        7. 加门窗:Arch_Window / Arch_Door,选择宿主墙。
        8. +
        9. 加楼板/柱/梁:BIM_Slab、BIM_Column、BIM_Beam。
        10. +
        11. 用 BIM_IfcExplorer 查看 IFC 结构,必要时导出 IFC。
        12. +
        +

        9.2 轴网与尺寸

        +
          +
        • Arch_Axis 建立轴网,墙可对齐轴线。
        • +
        • Draft_Dimension/TechDraw 标注尺寸。
        • +
        • 楼层高度、墙厚、门窗尺寸建议用 Spreadsheet 参数表驱动。
        • +
        +

        9.3 当前 Web 边界

        +

        BIM 模块页显示大量命令 boundary · no worker,表示 GUI/桌面命令尚未全部移植。 +能用的入口以 BIM 页面任务、项目页 Architecture 工作台与 Import/IFC 路径为准; +不可用命令在附录标为边界,不写成通过。

        +

        自检

        +
          +
        • 能创建 Site/Building/Floor 层级。
        • +
        • 能创建一面墙并修改高度/厚度。
        • +
        • 能把门窗挂到墙上。
        • +
        • 能打开 IFC Explorer。
        • +
        • 知道 BIM 页面 boundary 标记的含义。
        • +
        +

        常见错误

        +
          +
        1. 没有楼层就建墙,构件没有宿主层级。
        2. +
        3. 门窗没有选择宿主墙。
        4. +
        5. 把 boundary 命令当已实现功能写进交付。
        6. +
        7. 未设置单位就导入 IFC,尺寸差一千倍。
        8. +
        +

        练习

        +
          +
        1. 建一个 6×4 m 的房间:四面墙 + 楼板 + 一扇门。
        2. +
        3. 用参数表改墙高 2.8 → 3.2 m,观察所有墙更新。
        4. +
        5. 打开 IFC Explorer,记录墙/门/楼板的 IFC 类型。
        6. +
        + +

        第 10 章 CAM 加工

        +

        能力概览

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        步骤命令
        建 JobCAM_Job(Stock、Tool、Model、Post)
        2D/3D 路径CAM_Profile、CAM_Pocket_Shape、CAM_Pocket3D、CAM_Adaptive
        孔/槽/面CAM_Drilling、CAM_Helix、CAM_Engrave、CAM_MillFacing
        修饰CAM_DressupDogbone、DressupDragKnife、DressupRampEntry、DressupTag
        后处理/仿真CAM_Post、CAM_PostSelected、CAM_Simulator
        刀具CAM_ToolBitLoad、CAM_ToolBitSave、CAM_ExportTemplate
        +

        CAM Job 任务:Stock、Tool、Model 与 Post

        +

        10.1 建立 CAM Job

        +
          +
        1. 打开 /workbench.html?module=CAM&command=CAM_Job。
        2. +
        3. 选择模型(Model)、毛坯(Stock)与刀具(Tool)。
        4. +
        5. 选择后处理器(GRBL/LinuxCNC 等),或自定义 post。
        6. +
        7. 点 Create 生成 Job。
        8. +
        +

        10.2 生成路径

        +
          +
        1. 选中 Job。
        2. +
        3. 依次添加 Profile / Pocket / Drilling 等操作。
        4. +
        5. 每个操作选择几何(面/边/孔)与参数(步距、下刀、退刀、转速)。
        6. +
        7. 用 CAM_Simulator 检查刀路与过切。
        8. +
        9. CAM_Post 输出 G-code 到 OPFS。
        10. +
        +

        10.3 当前 Web 边界

        +

        CAM 模块页有 7 个 native handler,但 Adaptive/Surface/Waterline 依赖 OpenCAMLib, +完整 ToolBit 库与 G-code 编辑器仍是桌面能力。可用命令以 CAM 任务面板实际暴露的为准; +边界命令在附录标注,不作为通过项。

        +

        自检

        +
          +
        • 能创建 CAM Job 并选择 Model/Stock/Tool。
        • +
        • 能添加 Profile 或 Pocket 操作。
        • +
        • 能打开 Simulator 检查刀路。
        • +
        • 能 Post 出 G-code 并在 OPFS 找到。
        • +
        • 知道 OpenCAMLib 相关命令为边界。
        • +
        +

        常见错误

        +
          +
        1. 没有毛坯/模型就建 Job。
        2. +
        3. 刀具直径与几何不匹配,路径过切。
        4. +
        5. 后处理器选错,G-code 不被机床识别。
        6. +
        7. 把 Adaptive 当已可用;当前 Web 端受限。
        8. +
        +

        练习

        +
          +
        1. 对一个 80×60×20 的 Box 建 Job,做外形 Profile。
        2. +
        3. 加一个 Drilling 操作,选择 4 个孔位。
        4. +
        5. Post 后打开 G-code,检查 G0/G1 与主轴指令。
        6. +
        + +

        第 11 章 TechDraw 工程图

        +

        能力概览

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        类别命令
        页面TechDraw_PageDefault、TechDraw_PageTemplate
        视图TechDraw_View、ProjectionGroup、SectionView、DetailView
        标注TechDraw_Dimension、Balloon、LeaderLine、WeldSymbol、SurfaceFinishSymbols
        填充TechDraw_Hatch、GeometricHatch
        导出TechDraw_ExportPageSVG、ExportPageDXF
        其他ArchView、DraftView、ActiveView、PrintAll
        +

        TechDraw 模块页面:页面/视图命令与 Hatches 任务

        +

        11.1 出图工作流

        +
          +
        1. 准备实体模型(Part/PartDesign)。
        2. +
        3. 新建页面:TechDraw_PageDefault(A4 横向/纵向)。
        4. +
        5. 插入视图:TechDraw_View 选择模型;或 ProjectionGroup 一次生成多视图。
        6. +
        7. 加剖视/局部视图:SectionView、DetailView。
        8. +
        9. 标注尺寸、中心线、公差、表面粗糙度。
        10. +
        11. 导出 SVG/DXF 或打印。
        12. +
        +

        11.2 当前 Web 边界

        +

        TechDraw 命令在模块页可见,但页面 Worker 与文档 Worker 之间没有跨 Worker 文档桥: +TechDraw_PageDefault 会报 Document does not exist;SVG 回退不是 TechDraw 输出。 +本手册把 TechDraw 出图标为边界,不能把模块页命令清单当作已通过功能。

        +

        自检

        +
          +
        • 能说出页面、视图、标注、导出各 1 个命令。
        • +
        • 知道 TechDraw 当前跨 Worker 边界。
        • +
        • 能区分 TechDraw 页面与普通 SVG 截图。
        • +
        • 知道桌面版与 Web 版出图能力差异。
        • +
        +

        常见错误

        +
          +
        1. 把 SVG 截图当 TechDraw 图纸交付。
        2. +
        3. 未准备模型就建页面。
        4. +
        5. 认为模块页出现命令就等于可用。
        6. +
        7. 忽略跨 Worker 文档不存在的错误。
        8. +
        +

        练习

        +
          +
        1. 在桌面 FreeCAD 中完成一次三视图 + 尺寸标注,作为 Web 版对照。
        2. +
        3. 在 Web 模块页打开 TechDraw,记录失败命令与错误文本。
        4. +
        5. 把你的对照结果写入缺口表。
        6. +
        + +

        第 12 章 FEM 有限元

        +

        能力概览

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        步骤命令
        分析容器FEM_Analysis
        材料FEM_MaterialSolid、FEM_MaterialFluid、FEM_MaterialMechanicalNonlinear
        约束FEM_ConstraintFixed、ConstraintDisplacement、ConstraintContact
        载荷FEM_ConstraintForce、ConstraintPressure、ConstraintTemperature
        网格FEM_MeshGmshFromShape、MeshNetgenFromShape
        求解FEM_SolverCalculiX、SolverElmer、SolverRun
        结果FEM_ResultShow、PostPipelineFromResult
        +

        FEM 模块页面:分析/材料/约束/求解命令清单

        +

        12.1 静力分析工作流

        +
          +
        1. 准备实体模型。
        2. +
        3. 新建 Analysis。
        4. +
        5. 指定材料(E、ν、密度)。
        6. +
        7. 加固定约束与载荷(力/压力)。
        8. +
        9. 生成网格:Gmsh 或 Netgen,设置单元尺寸。
        10. +
        11. 选求解器(CalculiX/Elmer),运行。
        12. +
        13. 查看位移/应力云图与结果表。
        14. +
        +

        12.2 当前 Web 边界

        +

        FEM 原生对象(Fem::FemMeshObject、FemResultObject)未随包发布,结果停留在 Worker; +VTK 显示为 three.js 近似。Web 端能做部分前处理与任务面板操作,但不能宣称完整原生 +FEM 结果已保存/可回开。相关命令在附录标为边界。

        +

        自检

        +
          +
        • 能创建 Analysis 并指定材料。
        • +
        • 能加固定约束与力/压力。
        • +
        • 能生成 Gmsh/Netgen 网格。
        • +
        • 知道结果对象/原生网格的 Web 边界。
        • +
        • 能说明桌面与 Web 结果保存差异。
        • +
        +

        常见错误

        +
          +
        1. 没有材料就求解。
        2. +
        3. 约束不足导致刚体位移。
        4. +
        5. 网格过粗,应力集中处结果不可信。
        6. +
        7. 把 Worker 内结果当作已保存到 FCStd。
        8. +
        +

        练习

        +
          +
        1. 对 100×20×10 的悬臂梁做静力分析。
        2. +
        3. 比较两种网格尺寸的位移差。
        4. +
        5. 记录 Web 端结果面板缺失项,作为边界证据。
        6. +
        + +

        第 13 章 Draft、Plot、OpenSCAD 等专项工具

        +

        能力概览

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        模块能力代表命令
        Draft2D 线/圆/矩形/多边形、移动/旋转/阵列/克隆、尺寸Draft_Line、Draft_Circle、Draft_Array、Draft_Move、Draft_Dimension
        Plot2D 图表:Figure/Axes/SeriesPlot_Axes、plot.pythonFamilyBatch
        OpenSCAD添加 OpenSCAD 元素、Hull/Minkowski/布尔/导入 CSGOpenSCAD_AddOpenSCADElement、OpenSCAD_Hull、ImportCSG
        Robot机器人、轨迹、示教Robot_CreateRobot、Robot_AddToolShape、Robot_Trajectory
        Cloud云端保存/恢复(需远程服务)cloud.save、cloud.restore
        JtReaderJT 文件读取JtReader_*
        Sandbox自定义/实验工作台Sandbox_*
        Test/Tux/TemplatePyMod/Show测试、模板、显示辅助对应模块命令
        +

        13.1 OpenSCAD 元素

        +

        OpenSCAD 元素任务:代码、参数与执行

        +
          +
        1. 新建/打开文档。
        2. +
        3. 打开 OpenSCAD 工作台,点 “Add OpenSCAD element”。
        4. +
        5. 输入代码(如 cube([10,10,10]);),设置参数。
        6. +
        7. 执行后在对象树生成网格/形状。
        8. +
        9. 需要布尔/外壳时用 Hull/Minkowski 等命令。
        10. +
        +
        +

        Web 端 OpenSCAD 第二次编译存在崩溃边界;逐次保存,避免同一实例连续编译。

        +
        +

        13.2 Robot

        +

        Robot 工作台:机器人、关节角与 Tool frame

        +
          +
        • Robot_CreateRobot 创建机器人。
        • +
        • Joint angles (degrees) 设置各轴角度。
        • +
        • Robot_Tool frame 设置工具坐标系。
        • +
        • 轨迹/示教命令用于生成运动路径。
        • +
        +

        13.3 Plot

        +

        Plot 工作台:Figure/Axes/Series

        +

        Plot 用于把表格/表达式画成 2D 图:先建 Figure,再加 Axes 与 Series, +最后导出 PNG/SVG。

        +

        13.4 其他模块与边界

        +
          +
        • Draft:项目页工作台可选 Draft;2D 命令与阵列、尺寸标注。
        • +
        • Cloud:Save/Restore 需要远程 S3 与凭据;本地 OPFS 不受影响。
        • +
        • JtReader:JT 读取;命令数量少,按模块页实际暴露项使用。
        • +
        • Sandbox/Test/Tux/TemplatePyMod/Show:实验/测试/模板/显示辅助,不作为产品主流程。
        • +
        +

        自检

        +
          +
        • 能打开 OpenSCAD 元素任务并执行一段代码。
        • +
        • 能在 Robot 工作台修改关节角并观察姿态。
        • +
        • 能创建 Plot Figure/Axes/Series。
        • +
        • 知道 Cloud 需要远程服务。
        • +
        • 能在附录查到这些模块的命令与状态。
        • +
        +

        常见错误

        +
          +
        1. OpenSCAD 连续编译导致实例崩溃。
        2. +
        3. Robot 关节角单位混用度/弧度。
        4. +
        5. Plot 没建 Axes 就加 Series。
        6. +
        7. Cloud 未配置远程存储就点 Save。
        8. +
        +

        练习

        +
          +
        1. 用 OpenSCAD 画一个 20×20×20 立方体并转 Part 形状。
        2. +
        3. 在 Robot 中设置 6 个关节角,截取姿态。
        4. +
        5. 用 Plot 画一条正弦曲线并导出。
        6. +
        + +

        第 14 章 综合案例:27 件 GLB 产线

        +

        案例成果

        +

        这是前面工作的完整复盘:把 working/GLTFmodel 中的 27 个 GLB 参考模型, +在 Web FreeCAD 中重建为 27 个模型 / 88 个图元部件,并制作 18 集中文配音课程。

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        项目结果
        参考 GLB27 个(约 197 MB)
        重建模型27 个
        教学部件88 个 Box/Cylinder
        课程18 集(脚本、驱动、冒烟、成片)
        成片18/18,MP4/WebM/VTT/SRT/海报,约 760 MB
        总装88 条链接
        审计88/88 部件通过;27/27 模型
        交付FCStd / STEP / STL / 课程页 / 参考页 / 交互页
        +

        重建结果:27 个模型、88 个部件的整线场景

        +

        参考 GLB:27 件产线参考模型

        +

        14.1 完整工作流

        +
          +
        1. 参考解析:解析 GLB JSON/BIN,确认单位(米)、轴(Z-up)、根矩阵; +生成 line-spec.json(模型/部件/世界包围盒/颜色)。
        2. +
        3. 测量与零件表:E02 用参考查看器读包围盒,Spreadsheet 记录米→毫米换算。
        4. +
        5. 逐工位建模:E03–E16 按柜体、上料、输送、抓取、推料、检测、机器人、地面 +顺序创建 88 个部件;每集保存累计检查点。
        6. +
        7. 总装:E17 创建 LineAssembly,插入 88 条链接。
        8. +
        9. 审计与交付:E18 对 88 个部件做包围盒/中心/颜色断言,导出 STEP/STL。
        10. +
        11. 课程页:18 个视频、分步截图、参数表、检查点下载、进度。
        12. +
        +

        14.2 关键经验

        +
          +
        • 先量化再建模:参考表、部件数、包围盒先定,再动手。
        • +
        • 图元近似、尺寸精确:复杂铸件用 Box/Cylinder 组合,逐件断言包围盒/颜色。
        • +
        • 每集一个检查点:失败只重做该集,不推倒整条线。
        • +
        • 颜色要取证:FCStd Document.xml 的 WebDisplayColor 保存 #rrggbb。
        • +
        • 大文档视口有边界:重开 88 对象可能只渲染部分网格;最终展示用 STL + three.js。
        • +
        • 边界如实记录:glTF 原生导入/导出不可用,参考查看用 three.js。
        • +
        +

        14.3 证据与入口

        +
          +
        • 课程页:web/teaching/cases/production-line-course.html
        • +
        • 参考页:web/teaching/cases/production-line-reference.html
        • +
        • 交互页:web/teaching/cases/production-line-assembly.html
        • +
        • 规格:web/tools/line-course/line-spec.json
        • +
        • 收口状态:web/tools/line-course/evidence/final-status.json
        • +
        • 媒体:web/teaching/media/line-course/
        • +
        +

        自检

        +
          +
        • 能说出 27/88/18 三个数字。
        • +
        • 知道参考 GLB 的 Z-up、米制约定。
        • +
        • 能解释“图元近似、尺寸精确”的验收口径。
        • +
        • 知道总装是 88 条链接。
        • +
        • 知道 glTF 原生导入是边界。
        • +
        +

        常见错误

        +
          +
        1. 把 GLB 当成可直接导入的 CAD 实体。
        2. +
        3. 用单个 Box 代替整台机器,失去工位结构。
        4. +
        5. 不保存累计检查点,改一处就要重做全部。
        6. +
        7. 只看截图不做包围盒/颜色断言。
        8. +
        +

        练习

        +
          +
        1. 任选一个工位,按 line-spec.json 重建其 2–3 个部件。
        2. +
        3. 用 Part_CheckGeometry 检查一个部件,记录面数/三角面数。
        4. +
        5. 打开交互页,按工位筛选并截图。

        附录:命令索引

        @@ -5433,7 +6511,7 @@ Cylinder(Cylinder1),把圆柱沿 Z 放到 -10,