Complete all manual chapters with screenshots and command index
Co-Authored-By: Claude Code <noreply@anthropic.com>
@@ -38,30 +38,33 @@
|
|||||||
新建文档 → Body → 创建草图 → 矩形 → Pad Length=10 → 创建 Pad。
|
新建文档 → Body → 创建草图 → 矩形 → Pad Length=10 → 创建 Pad。
|
||||||
- 记录边界:项目页 Part 文档切 PartDesign 需要 ownership handoff,教程改用独立
|
- 记录边界:项目页 Part 文档切 PartDesign 需要 ownership handoff,教程改用独立
|
||||||
`partdesign.html`。
|
`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 章已完成)。
|
- `verified` 状态尚未回写:矩阵仍为 detailed/overview/boundary;截图与断言证据在
|
||||||
- 边界只按精确命令匹配 3 条;需补 Fem/CAM/Cloud/Import 的模块级边界与桌面入口。
|
`manual/data/capture/`,可在后续把有截图的章节升级为 verified。
|
||||||
- 已验证状态(verified)尚未接入:当前 status 只有 detailed/overview/boundary;
|
- 部分专业工作台(Mesh/BIM/TechDraw/FEM)截图来自模块页,展示命令清单与边界,
|
||||||
截图断言通过后需回写矩阵与徽章。
|
不是完整任务工作流;正文已明确说明。
|
||||||
- 第 1 章 `04-properties` 等图片为元素截图;后续章需统一全页 + 裁图规范。
|
- 命令索引 1602 行使 HTML 约 890 KB;图片外链,未嵌入。
|
||||||
- 命令索引 1602 行使 HTML 约 750 KB;后续章节图片外链,需持续监控体积。
|
- 第 3 章草图编辑器位于属性栏的布局边界仍在;可用 React 移到主舞台。
|
||||||
- 未提交/推送;建议分支 `web-manual-20261113`。
|
- 所有改动已提交/推送分支 `web-manual-20261113`。
|
||||||
|
|
||||||
## 下一步精确入口
|
## 下一步精确入口
|
||||||
|
|
||||||
1. 第 5 章 Assembly:`content/ch05-assembly.md` + `scenarios/ch05-assembly.json`;
|
1. 可选:把 capture 成功的章节回写为 `verified`,并补 `manual-gaps` 文档。
|
||||||
覆盖 Create/InsertLink、Ground、Joint、Solve、Exploded/BOM;
|
2. 可选:用 React 把草图编辑器移到主舞台,修复第 3 章布局边界。
|
||||||
再补第 0 章启动/OPFS 导读。
|
3. 可选:补 Mesh/BIM/TechDraw/FEM 的完整任务截图,替换模块页截图。
|
||||||
2. 边界补录:`generate-features.mjs` 的 `boundaries` 增加
|
4. 复现命令:`npm run manual:features` → capture → `npm run build:manual` →
|
||||||
Fem 原生对象、CAM 其余受限命令、Import_Gltf、Cloud、Material;
|
`npm run check:manual`。
|
||||||
同步 `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` → 更新本文件。
|
|
||||||
|
|
||||||
## 关键路径
|
## 关键路径
|
||||||
|
|
||||||
|
|||||||
BIN
web/manual/assets/ch00/start-opfs/01-start-dialog.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
web/manual/assets/ch00/start-opfs/02-file-tools.png
Normal file
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 350 KiB |
BIN
web/manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png
Normal file
|
After Width: | Height: | Size: 254 KiB |
BIN
web/manual/assets/ch07/file-tools/01-file-tools.png
Normal file
|
After Width: | Height: | Size: 231 KiB |
BIN
web/manual/assets/ch08/mesh-workbench/01-mesh-page.png
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
web/manual/assets/ch09/bim-workbench/01-bim-page.png
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
web/manual/assets/ch10/cam-job/01-cam-job.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
web/manual/assets/ch11/techdraw-page/01-techdraw-page.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
web/manual/assets/ch12/fem-workbench/01-fem-page.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
web/manual/assets/ch13/specialist-tools/01-openscad.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
web/manual/assets/ch13/specialist-tools/02-robot.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
web/manual/assets/ch13/specialist-tools/03-plot.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
web/manual/assets/ch14/case/01-assembly.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
web/manual/assets/ch14/case/02-reference.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
81
web/manual/content/ch00-start.md
Normal file
@@ -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=<Module>&command=<Command>`
|
||||||
|
- 教学服务:`http://127.0.0.1:5190/`
|
||||||
|
|
||||||
|
点左上角 Start 打开启动面板:新建文档、打开 OPFS 文档、打开最近文件。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 <name>.FCStd to OPFS`。
|
||||||
|
4. 需要本地副本时,点“下载到本地”或导出面板的下载按钮。
|
||||||
|
5. 导入/导出文件默认也写 `freecad-exports` 目录。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
> 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`,记录它所属章节与状态。
|
||||||
104
web/manual/content/ch05-assembly.md
Normal file
@@ -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。装配文档与零件文档分开保存;装配里保存的是链接与关节。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 完成。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
插入成功后,列表会显示:
|
||||||
|
|
||||||
|
```
|
||||||
|
CabinetA_P01 → Component (manual_assembly_source/Box)
|
||||||
|
CabinetA_P02 → Component001 (manual_assembly_source/Box001)
|
||||||
|
```
|
||||||
|
|
||||||
|
> 源文件必须先在 OPFS 中。Web 版不能用本地绝对路径直接引用外部 FCStd。
|
||||||
|
|
||||||
|
## 5.3 装配结果
|
||||||
|
|
||||||
|
Accept 后,Assemblies 面板出现 `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_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 与错误数量。
|
||||||
86
web/manual/content/ch06-measure-material-sheet.md
Normal file
@@ -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 长度、
|
||||||
|
阵列数量都可以绑定到表格别名,实现“改表驱动模型”。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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. 给两个对象设置不同颜色,保存后重新打开检查。
|
||||||
80
web/manual/content/ch07-import-export.md
Normal file
@@ -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 导入、刷新导出件/文档、打开文档。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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,检查对象树与包围盒。
|
||||||
70
web/manual/content/ch08-mesh-points-surface.md
Normal file
@@ -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` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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。
|
||||||
66
web/manual/content/ch09-bim.md
Normal file
@@ -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` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 类型。
|
||||||
63
web/manual/content/ch10-cam.md
Normal file
@@ -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` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 与主轴指令。
|
||||||
56
web/manual/content/ch11-techdraw.md
Normal file
@@ -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` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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. 把你的对照结果写入缺口表。
|
||||||
59
web/manual/content/ch12-fem.md
Normal file
@@ -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` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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 端结果面板缺失项,作为边界证据。
|
||||||
77
web/manual/content/ch13-specialists.md
Normal file
@@ -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 元素
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
1. 新建/打开文档。
|
||||||
|
2. 打开 OpenSCAD 工作台,点 “Add OpenSCAD element”。
|
||||||
|
3. 输入代码(如 `cube([10,10,10]);`),设置参数。
|
||||||
|
4. 执行后在对象树生成网格/形状。
|
||||||
|
5. 需要布尔/外壳时用 Hull/Minkowski 等命令。
|
||||||
|
|
||||||
|
> Web 端 OpenSCAD 第二次编译存在崩溃边界;逐次保存,避免同一实例连续编译。
|
||||||
|
|
||||||
|
## 13.2 Robot
|
||||||
|
|
||||||
|

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

|
||||||
|
|
||||||
|
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 画一条正弦曲线并导出。
|
||||||
78
web/manual/content/ch14-production-line.md
Normal file
@@ -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 / 课程页 / 参考页 / 交互页 |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 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. 打开交互页,按工位筛选并截图。
|
||||||
86
web/manual/data/capture/ch00-start-opfs.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
140
web/manual/data/capture/ch05-assembly-create-insert.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
59
web/manual/data/capture/ch06-spreadsheet-measure.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
58
web/manual/data/capture/ch07-file-tools.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
34
web/manual/data/capture/ch08-mesh-workbench.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
34
web/manual/data/capture/ch09-bim-workbench.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
34
web/manual/data/capture/ch10-cam-job.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
34
web/manual/data/capture/ch11-techdraw-page.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
34
web/manual/data/capture/ch12-fem-workbench.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
72
web/manual/data/capture/ch13-specialist-tools.json
Normal file
@@ -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": []
|
||||||
|
}
|
||||||
49
web/manual/data/final-status.json
Normal file
@@ -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 章专业工作台按模块页实际任务与边界编写"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"schema": "freecad-web-manual/page-check/v1",
|
"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",
|
"url": "http://127.0.0.1:5190/manual.html",
|
||||||
"viewports": [
|
"viewports": [
|
||||||
{
|
{
|
||||||
@@ -12,13 +12,13 @@
|
|||||||
"errors": [],
|
"errors": [],
|
||||||
"failed": [],
|
"failed": [],
|
||||||
"searchHits": 4,
|
"searchHits": 4,
|
||||||
"chapters": 4,
|
"chapters": 15,
|
||||||
"sections": 38,
|
"sections": 119,
|
||||||
"images": 16,
|
"images": 33,
|
||||||
"brokenImages": [],
|
"brokenImages": [],
|
||||||
"commandRows": 1602,
|
"commandRows": 1602,
|
||||||
"overflow": 0,
|
"overflow": 0,
|
||||||
"searchSize": 1644
|
"searchSize": 1736
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"viewport": {
|
"viewport": {
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
"errors": [],
|
"errors": [],
|
||||||
"failed": [],
|
"failed": [],
|
||||||
"searchHits": 4,
|
"searchHits": 4,
|
||||||
"chapters": 4,
|
"chapters": 15,
|
||||||
"sections": 38,
|
"sections": 119,
|
||||||
"images": 16,
|
"images": 33,
|
||||||
"brokenImages": [],
|
"brokenImages": [],
|
||||||
"commandRows": 1602,
|
"commandRows": 1602,
|
||||||
"overflow": 0,
|
"overflow": 0,
|
||||||
"searchSize": 1644
|
"searchSize": 1736
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ok": true
|
"ok": true
|
||||||
|
|||||||
87
web/manual/scenarios/ch00-start.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
125
web/manual/scenarios/ch05-assembly.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
58
web/manual/scenarios/ch06-spreadsheet.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
57
web/manual/scenarios/ch07-import-export.json
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
web/manual/scenarios/ch08-mesh.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
web/manual/scenarios/ch09-bim.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
21
web/manual/scenarios/ch10-cam.json
Normal file
@@ -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\")"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
web/manual/scenarios/ch11-techdraw.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
web/manual/scenarios/ch12-fem.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
47
web/manual/scenarios/ch13-specialists.json
Normal file
@@ -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\")"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
web/teaching/manual-assets/ch00/start-opfs/01-start-dialog.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
web/teaching/manual-assets/ch00/start-opfs/02-file-tools.png
Normal file
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 350 KiB |
|
After Width: | Height: | Size: 254 KiB |
BIN
web/teaching/manual-assets/ch07/file-tools/01-file-tools.png
Normal file
|
After Width: | Height: | Size: 231 KiB |
BIN
web/teaching/manual-assets/ch08/mesh-workbench/01-mesh-page.png
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
web/teaching/manual-assets/ch09/bim-workbench/01-bim-page.png
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
web/teaching/manual-assets/ch10/cam-job/01-cam-job.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 206 KiB |
BIN
web/teaching/manual-assets/ch12/fem-workbench/01-fem-page.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
web/teaching/manual-assets/ch13/specialist-tools/01-openscad.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
web/teaching/manual-assets/ch13/specialist-tools/02-robot.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
web/teaching/manual-assets/ch13/specialist-tools/03-plot.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
web/teaching/manual-assets/ch14/case/01-assembly.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
web/teaching/manual-assets/ch14/case/02-reference.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
@@ -48,7 +48,9 @@ for (const chapter of chapters) {
|
|||||||
const text = inner.replace(/<[^>]+>/g, "").trim();
|
const text = inner.replace(/<[^>]+>/g, "").trim();
|
||||||
const id = Number(level) === 1 ? chapter.id : `${chapter.id}-${slug(text)}`;
|
const id = Number(level) === 1 ? chapter.id : `${chapter.id}-${slug(text)}`;
|
||||||
return `<h${level} id="${esc(id)}">${inner}</h${level}>`;
|
return `<h${level} id="${esc(id)}">${inner}</h${level}>`;
|
||||||
}).replace(/<img([^>]*?)>/g, (whole, attrs) => /loading=/.test(attrs) ? whole : `<img loading="lazy"${attrs}>`);
|
}).replace(/<img([^>]*?)>/g, (whole, attrs) => /loading=/.test(attrs) ? whole : `<img loading="lazy"${attrs}>`)
|
||||||
|
.replace(/<table>/g, '<div class="table-scroll"><table>')
|
||||||
|
.replace(/<\/table>/g, '</table></div>');
|
||||||
sections.push({ ...chapter, html: withIds });
|
sections.push({ ...chapter, html: withIds });
|
||||||
|
|
||||||
const h2s = [...chapter.body.matchAll(/^## (.+)$/gm)].map(match => {
|
const h2s = [...chapter.body.matchAll(/^## (.+)$/gm)].map(match => {
|
||||||
@@ -72,7 +74,7 @@ for (const chapter of chapters) {
|
|||||||
const sidebarHtml = `<ol>${sidebar.map(chapter => `<li>
|
const sidebarHtml = `<ol>${sidebar.map(chapter => `<li>
|
||||||
<div class="chapter"><input type="checkbox" data-progress="${esc(chapter.id)}" aria-label="完成 ${esc(chapter.title)}" /><a href="#${esc(chapter.id)}">${esc(chapter.title)}</a></div>
|
<div class="chapter"><input type="checkbox" data-progress="${esc(chapter.id)}" aria-label="完成 ${esc(chapter.title)}" /><a href="#${esc(chapter.id)}">${esc(chapter.title)}</a></div>
|
||||||
${chapter.sections.map(section => `<a class="sec" href="#${esc(section.id)}">${esc(section.title)}</a>`).join("")}
|
${chapter.sections.map(section => `<a class="sec" href="#${esc(section.id)}">${esc(section.title)}</a>`).join("")}
|
||||||
</li>`).join("")}</ol>`;
|
</li>`).join("")}<li><a href="#ch15">附录:命令索引</a></li></ol>`;
|
||||||
|
|
||||||
const statusLabel = { detailed: "精讲", overview: "覆盖", boundary: "边界", verified: "已验证", "fix-needed": "待修" };
|
const statusLabel = { detailed: "精讲", overview: "覆盖", boundary: "边界", verified: "已验证", "fix-needed": "待修" };
|
||||||
const moduleOptions = [...new Set(features.commands.map(item => item.module))].sort()
|
const moduleOptions = [...new Set(features.commands.map(item => item.module))].sort()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import path from "node:path";
|
|||||||
import { createHash } from "node:crypto";
|
import { createHash } from "node:crypto";
|
||||||
import { createRequire } from "node:module";
|
import { createRequire } from "node:module";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { listOpfsFiles, readOpfsFile } from "../carrier-course/lib/opfs.mjs";
|
import { listOpfsFiles, readOpfsFile, seedOpfsFromBytes } from "../carrier-course/lib/opfs.mjs";
|
||||||
|
|
||||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||||
const webRoot = path.resolve(here, "../..");
|
const webRoot = path.resolve(here, "../..");
|
||||||
@@ -124,6 +124,10 @@ async function runOnce() {
|
|||||||
await page.locator(action.selector).first().selectOption(action.label ? { label: action.label } : action.value);
|
await page.locator(action.selector).first().selectOption(action.label ? { label: action.label } : action.value);
|
||||||
record({ action: "select", selector: action.selector, label: action.label ?? action.value });
|
record({ action: "select", selector: action.selector, label: action.label ?? action.value });
|
||||||
break;
|
break;
|
||||||
|
case "selectIndex":
|
||||||
|
await page.locator(action.selector).first().selectOption({ index: action.index });
|
||||||
|
record({ action: "selectIndex", selector: action.selector, index: action.index });
|
||||||
|
break;
|
||||||
case "press": await page.keyboard.press(action.key); record({ action: "press", key: action.key }); break;
|
case "press": await page.keyboard.press(action.key); record({ action: "press", key: action.key }); break;
|
||||||
case "clickCanvas": {
|
case "clickCanvas": {
|
||||||
const target = page.locator(action.selector).first();
|
const target = page.locator(action.selector).first();
|
||||||
@@ -157,6 +161,13 @@ async function runOnce() {
|
|||||||
await page.evaluate(action.script);
|
await page.evaluate(action.script);
|
||||||
record({ action: "eval" });
|
record({ action: "eval" });
|
||||||
break;
|
break;
|
||||||
|
case "seed": {
|
||||||
|
const file = path.resolve(action.file);
|
||||||
|
if (!fs.existsSync(file)) throw new Error(`seed fixture missing: ${file}`);
|
||||||
|
await seedOpfsFromBytes(page, action.name ?? path.basename(file), fs.readFileSync(file));
|
||||||
|
record({ action: "seed", file, name: action.name ?? path.basename(file) });
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "shot": await shot(action); break;
|
case "shot": await shot(action); break;
|
||||||
case "save": await save(action); break;
|
case "save": await save(action); break;
|
||||||
case "assertText": {
|
case "assertText": {
|
||||||
@@ -169,6 +180,18 @@ async function runOnce() {
|
|||||||
await page.locator(action.selector).first().waitFor({ state: "visible", timeout: 30000 });
|
await page.locator(action.selector).first().waitFor({ state: "visible", timeout: 30000 });
|
||||||
record({ action: "assertVisible", selector: action.selector });
|
record({ action: "assertVisible", selector: action.selector });
|
||||||
break;
|
break;
|
||||||
|
case "waitOptions": {
|
||||||
|
const locator = page.locator(action.selector).first();
|
||||||
|
let count = 0;
|
||||||
|
for (let attempt = 0; attempt < 80; attempt++) {
|
||||||
|
count = await locator.locator("option").count();
|
||||||
|
if (count >= (action.min ?? 1)) break;
|
||||||
|
await page.waitForTimeout(500);
|
||||||
|
}
|
||||||
|
if (count < (action.min ?? 1)) throw new Error(`waitOptions failed: ${action.selector} ${count}`);
|
||||||
|
record({ action: "waitOptions", selector: action.selector, count });
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "assertValue": {
|
case "assertValue": {
|
||||||
const value = await page.locator(action.selector).first().inputValue();
|
const value = await page.locator(action.selector).first().inputValue();
|
||||||
if (String(value) !== String(action.value)) throw new Error(`assertValue failed: ${action.selector} ${value} != ${action.value}`);
|
if (String(value) !== String(action.value)) throw new Error(`assertValue failed: ${action.selector} ${value} != ${action.value}`);
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
th, td { border-bottom:1px solid var(--line); padding:5px 7px; text-align:left; vertical-align:top; }
|
th, td { border-bottom:1px solid var(--line); padding:5px 7px; text-align:left; vertical-align:top; }
|
||||||
th { color:var(--accent); }
|
th { color:var(--accent); }
|
||||||
code, pre { background:#0b1014; border:1px solid #22303a; border-radius:5px; }
|
code, pre { background:#0b1014; border:1px solid #22303a; border-radius:5px; }
|
||||||
code { padding:1px 4px; font-size:12.5px; }
|
code { padding:1px 4px; font-size:12.5px; overflow-wrap:anywhere; }
|
||||||
pre { padding:10px; overflow:auto; }
|
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; }
|
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; }
|
.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); }
|
.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 { 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); }
|
nav.sidebar.open { transform:translateX(0); }
|
||||||
#menu-toggle { display:inline-block; }
|
#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 { gap:8px; padding:8px 10px; }
|
||||||
header.top h1 { font-size:14px; max-width:34vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
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; }
|
#search { width:auto; flex:1; min-width:0; margin-left:6px; }
|
||||||
|
|||||||