Compare commits
11 Commits
main
...
web-manual
| Author | SHA1 | Date | |
|---|---|---|---|
| 579d6d20c8 | |||
| 158e9ddfdc | |||
| 15a365022f | |||
| 3d3afc129f | |||
| 6a7efb5432 | |||
| bc40c77153 | |||
| a10493723b | |||
| cf4a3ea984 | |||
| 249f40a69b | |||
| 3ac496c3c2 | |||
| 4eff6110e7 |
104
.gitignore
vendored
@@ -1,73 +1,35 @@
|
|||||||
# file types to ignore
|
/freecad-source/build-web/
|
||||||
.*
|
/freecad-source/build/
|
||||||
!*.gitattributes
|
/web/node_modules/
|
||||||
!*.gitignore
|
/web/dist/
|
||||||
!/.clang-format
|
/web/public/kernel/
|
||||||
!/.clang-tidy
|
/web/public/modules/
|
||||||
!/.git-blame-ignore-revs
|
/docs/current/continuation-runs/
|
||||||
!/.gitattributes
|
/docs/current/user-tests-20260915/
|
||||||
!/.github/
|
/docs/current/business-evidence/
|
||||||
!/.gitignore
|
/docs/current/failure-evidence/
|
||||||
!/.gitmodules
|
/docs/current/round-reports/
|
||||||
!/.packit.yaml
|
/docs/current/periodic-optimization/
|
||||||
!/.pre-commit-config.yaml
|
/docs/current/operator-gap-discovery/
|
||||||
!/.pylintrc
|
**/__pycache__/
|
||||||
!/contrib/.vscode/
|
|
||||||
*.clangd
|
|
||||||
*.DS_Store
|
|
||||||
*.dep
|
|
||||||
*.exp
|
|
||||||
*.kdev4
|
|
||||||
*.lib
|
|
||||||
*.manifest
|
|
||||||
*.o
|
|
||||||
*.obj
|
|
||||||
*.orig
|
|
||||||
*.output
|
|
||||||
*.pch
|
|
||||||
*.pyc
|
*.pyc
|
||||||
*.vcproj
|
*.log
|
||||||
# Ignore .db files created by Qt Designer when editing .ui files
|
*.out
|
||||||
*.db
|
*.tmp
|
||||||
*qrc.depends
|
.env*
|
||||||
*~
|
|
||||||
BuildLog.htm
|
|
||||||
CMakeCache.txt
|
|
||||||
CMakeFiles/
|
|
||||||
CMakeLists.txt.user
|
|
||||||
Makefile
|
|
||||||
cmake_install.cmake
|
|
||||||
config.h
|
|
||||||
install_manifest.txt
|
|
||||||
moc_*.cpp
|
|
||||||
qrc_*.cpp
|
|
||||||
ui_*.h
|
|
||||||
/.vscode/
|
|
||||||
/ALL_BUILD.dir/
|
|
||||||
/Mod/
|
|
||||||
/ZERO_CHECK.dir/
|
|
||||||
/bin/
|
|
||||||
/build-*/
|
|
||||||
/build/
|
|
||||||
/cmake-build*/
|
|
||||||
/conda/environment.yml
|
|
||||||
/doc/
|
|
||||||
/lib/
|
|
||||||
/src/Tools/offlinedoc/*.txt
|
|
||||||
/src/Tools/offlinedoc/localwiki/
|
|
||||||
OpenSCAD_rc.py
|
|
||||||
tags
|
|
||||||
/CMakeUserPresets.json
|
|
||||||
Testing
|
|
||||||
compile_commands.json
|
|
||||||
*.sublime-project
|
|
||||||
*.sublime-workspace
|
|
||||||
|
|
||||||
# crowdin file
|
# BIM workshop video production cache (raw recording, Chrome profile, ffmpeg segments)
|
||||||
files_to_translate.txt
|
web/tools/bim-workshop-video/profile/
|
||||||
src/Tools/freecad.zip
|
web/tools/bim-workshop-video/raw/
|
||||||
tsupdate_stderr.log
|
web/tools/bim-workshop-video/segments/
|
||||||
tsupdate_stdout.log
|
|
||||||
# pixi environments
|
# Production-line course: regenerable recording/audio caches and local media
|
||||||
*.egg-info
|
web/tools/line-course/raw/
|
||||||
.pixi
|
web/tools/line-course/episodes/*/segments/
|
||||||
|
web/tools/line-course/episodes/*/audio/
|
||||||
|
web/teaching/media/line-course/*.mp4
|
||||||
|
web/teaching/media/line-course/*.webm
|
||||||
|
web/teaching/media/line-course/*.vtt
|
||||||
|
web/teaching/media/line-course/*.srt
|
||||||
|
web/teaching/media/line-course/*-poster.png
|
||||||
|
web/teaching/cases/line-models
|
||||||
|
|||||||
21
web/docs/current/web-freecad-manual-gaps.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Web FreeCAD 教案缺口台账
|
||||||
|
|
||||||
|
生成时间:2026-11-13T05:08:46.050Z
|
||||||
|
|
||||||
|
已验证命令:12;待修:0;边界:7
|
||||||
|
|
||||||
|
| 模块 | 边界 | 原因 | 桌面源码入口 |
|
||||||
|
|---|---|---|---|
|
||||||
|
| TechDraw | TechDraw 跨 Worker 文档桥 | 页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。 | freecad-source/src/Mod/TechDraw/App/DrawPage.cpp<br>freecad-source/src/Mod/TechDraw/App/DrawViewPart.cpp |
|
||||||
|
| Fem | FEM 原生结果对象 | FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。 | freecad-source/src/Mod/Fem/App/FemMeshObject.cpp<br>web/docs/current/web-freecad-gaps-fem.md |
|
||||||
|
| CAM | CAM OpenCAMLib 路径 | Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。 | freecad-source/src/Mod/CAM/App/AppPath.cpp<br>web/docs/current/cam-teaching-gap.md |
|
||||||
|
| Import | glTF 原生导入/导出 | OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。 | freecad-source/src/Mod/Import/App/ReaderGltf.cpp<br>freecad-source/src/Mod/Import/App/WriterGltf.cpp |
|
||||||
|
| Cloud | Cloud 远程存储 | Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。 | web/src/cloud.worker.ts |
|
||||||
|
| Material | Material 原生库兼容 | Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。 | freecad-source/src/Mod/Material/App/MaterialManager.cpp |
|
||||||
|
| OpenSCAD | OpenSCAD 二次编译崩溃 | 同一实例连续编译可能崩溃;逐次保存并重启实例。 | freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp |
|
||||||
|
|
||||||
|
## 布局/流程说明
|
||||||
|
|
||||||
|
- 草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。
|
||||||
|
- 项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。
|
||||||
|
- Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。
|
||||||
81
web/manual/CONTINUATION.md
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
# Web FreeCAD 全功能初学者教案 · 接续点
|
||||||
|
|
||||||
|
更新:2026-11-13
|
||||||
|
计划:`/home/mes123456/.claude/plans/partitioned-puzzling-haven.md`
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
单页中文 HTML 教案,覆盖 32 个模块;核心模块逐步精讲,专业模块 1–2 个工作流;
|
||||||
|
1492 条命令全部进附录;小缺口修 React/内核,大边界如实标注。
|
||||||
|
|
||||||
|
## 已完成(P0)
|
||||||
|
|
||||||
|
- `tools/manual/generate-features.mjs` → `manual/data/{manual-features,inventory-snapshot,coverage-audit}.json`
|
||||||
|
- 32/32 模块有章节;1602 条命令记录(1492 桌面 + 110 注册路由);
|
||||||
|
196 native handler 全部映射;312 精讲 / 1287 覆盖 / 3 边界。
|
||||||
|
- 边界已识别:`CAM_Adaptive`、`FEM_ResultShow`、`TechDraw_PageDefault`;
|
||||||
|
glTF/Cloud 等模块级边界待补入 gap ledger。
|
||||||
|
- `tools/manual/capture.mjs`:Playwright 动作 DSL(goto/wait/click/fill/select/press/
|
||||||
|
drag/eval/shot/save/assert),0 pageError/consoleError 门禁,截图 >5 KB,报告 JSON。
|
||||||
|
- `tools/manual/build-manual.mjs` + `template.html`:单页 HTML,侧栏/搜索/进度/灯箱/
|
||||||
|
命令索引/移动端抽屉;输出 `teaching/manual.html` + `manual-assets/`。
|
||||||
|
- 第 1 章样章:`content/ch01-ui.md` + `scenarios/ch01-ui.json`;
|
||||||
|
7 张真实截图(界面/Box/Placement/属性/视口/保存/总结)。
|
||||||
|
- 页面检查通过:1440×900 与 390×844 均 0 错误、0 破坏图片、0 横向溢出;
|
||||||
|
搜索 `Part_Box` 命中 4 条;命令索引 1602 行。
|
||||||
|
- `package.json` 增加 `manual:features` / `build:manual` / `check:manual`。
|
||||||
|
|
||||||
|
- 第 2 章 Part:`content/ch02-part.md` + `scenarios/ch02-part.json`;
|
||||||
|
4 张截图(图元、Cut 通孔、CheckGeometry、结果);断言 Cylinder R15/H40/Z-10、
|
||||||
|
Cut 体积 81862.83 mm³、7 面/124 三角面;fixture 已保存。
|
||||||
|
- 第 3 章 Sketcher:`content/ch03-sketcher.md` + `scenarios/ch03-sketcher.json`;
|
||||||
|
5 张截图(New Sketch、编辑器、4 geometries 矩形、约束空间、关闭);
|
||||||
|
通过表单坐标创建 60×40 矩形,断言 `4 geometries`。
|
||||||
|
- 已确认 Web 布局边界:草图编辑器嵌在属性栏内、面板窄且需滚动;
|
||||||
|
正文已如实说明,后续可用 React 把编辑器移到主舞台修复。
|
||||||
|
- 第 4 章 PartDesign:`content/ch04-partdesign.md` + `scenarios/ch04-partdesign.json`;
|
||||||
|
3 张截图(Sketch1 矩形、Pad 任务、Pad 结果);在 `/partdesign.html` 完成
|
||||||
|
新建文档 → Body → 创建草图 → 矩形 → Pad Length=10 → 创建 Pad。
|
||||||
|
- 记录边界:项目页 Part 文档切 PartDesign 需要 ownership handoff,教程改用独立
|
||||||
|
`partdesign.html`。
|
||||||
|
- **全部章节完成**:第 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` 记录完成状态。
|
||||||
|
- 收口脚本 `tools/manual/finalize-features.mjs`:回写 14 个 workflow、34 张截图、
|
||||||
|
12 条 `verified` 命令;生成 `manual/data/gap-ledger.json` 与
|
||||||
|
`web/docs/current/web-freecad-manual-gaps.md`(7 条边界 + 布局/流程说明)。
|
||||||
|
- 最终页面:15 章 / 33 张正文图(34 张采集图)/ 1602 命令 / 1736 搜索项;
|
||||||
|
桌面与移动 0 错误、0 破图、0 溢出。
|
||||||
|
|
||||||
|
## 真实残余
|
||||||
|
|
||||||
|
- `verified` 状态尚未回写:矩阵仍为 detailed/overview/boundary;截图与断言证据在
|
||||||
|
`manual/data/capture/`,可在后续把有截图的章节升级为 verified。
|
||||||
|
- 部分专业工作台(Mesh/BIM/TechDraw/FEM)截图来自模块页,展示命令清单与边界,
|
||||||
|
不是完整任务工作流;正文已明确说明。
|
||||||
|
- 命令索引 1602 行使 HTML 约 890 KB;图片外链,未嵌入。
|
||||||
|
- 第 3 章草图编辑器位于属性栏的布局边界仍在;可用 React 移到主舞台。
|
||||||
|
- 所有改动已提交/推送分支 `web-manual-20261113`。
|
||||||
|
|
||||||
|
## 下一步精确入口
|
||||||
|
|
||||||
|
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`。
|
||||||
|
|
||||||
|
## 关键路径
|
||||||
|
|
||||||
|
- 应用:`http://127.0.0.1:5181/project.html?workbench=Part`
|
||||||
|
- 教学服务:`http://127.0.0.1:5190/manual.html`
|
||||||
|
- 矩阵输入:`web/public/api/workbench-command-matrix.json`、
|
||||||
|
`web/public/api/desktop-command-routes.json`、`web/src/module-registry.generated.ts`
|
||||||
|
- 截图:`web/manual/assets/<chapter>/<workflow>/`
|
||||||
|
- 证据:`web/manual/data/capture/<chapter>-<workflow>.json`
|
||||||
33
web/manual/README.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Web FreeCAD 全功能初学者图文教案
|
||||||
|
|
||||||
|
单页中文 HTML 教案:32 个模块、1492 条命令索引、核心模块分步截图、专业模块工作流与边界说明。
|
||||||
|
|
||||||
|
## 目录
|
||||||
|
|
||||||
|
- `content/*.md`:章节正文(front-matter: id/order/title/level)。
|
||||||
|
- `scenarios/*.json`:Playwright 动作脚本,用于截图与断言。
|
||||||
|
- `assets/<chapter>/<workflow>/`:真实界面截图。
|
||||||
|
- `data/manual-features.json`:命令覆盖矩阵。
|
||||||
|
- `data/inventory-snapshot.json`:输入文件 sha256。
|
||||||
|
- `data/coverage-audit.json`:模块/章节/状态计数。
|
||||||
|
- `data/capture/*.json`:每章截图与断言证据。
|
||||||
|
- `fixtures/`:capture 保存的 FCStd。
|
||||||
|
|
||||||
|
## 构建
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /home/mes123456/FreeCADWasmDev/working/FreeCAD/web
|
||||||
|
npm run manual:features # 生成命令矩阵
|
||||||
|
node tools/manual/capture.mjs --scenario manual/scenarios/ch01-ui.json
|
||||||
|
npm run build:manual # 生成 teaching/manual.html + manual-assets/
|
||||||
|
npm run check:manual # 桌面/移动、图片、搜索、命令索引
|
||||||
|
```
|
||||||
|
|
||||||
|
访问 `http://127.0.0.1:5190/manual.html`。
|
||||||
|
|
||||||
|
## 口径
|
||||||
|
|
||||||
|
- 命令状态:`detailed` 精讲、`overview` 覆盖、`boundary` 边界、`verified` 已验证。
|
||||||
|
- 大边界(TechDraw 跨 Worker、FEM 原生对象、CAM OpenCAMLib、glTF 原生导入导出、
|
||||||
|
Material/Cloud)只标注,不写成可用。
|
||||||
|
- 截图必须来自真实应用;0 pageError/consoleError、图片 >5 KB 才入库。
|
||||||
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 |
BIN
web/manual/assets/ch01/ui-and-document/01-interface.png
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
web/manual/assets/ch01/ui-and-document/02-part-box.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
web/manual/assets/ch01/ui-and-document/03-placement.png
Normal file
|
After Width: | Height: | Size: 213 KiB |
BIN
web/manual/assets/ch01/ui-and-document/04-properties.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
web/manual/assets/ch01/ui-and-document/05-viewport.png
Normal file
|
After Width: | Height: | Size: 213 KiB |
BIN
web/manual/assets/ch01/ui-and-document/06-saved.png
Normal file
|
After Width: | Height: | Size: 281 KiB |
BIN
web/manual/assets/ch01/ui-and-document/07-summary.png
Normal file
|
After Width: | Height: | Size: 281 KiB |
BIN
web/manual/assets/ch02/part-primitives-boolean/01-primitives.png
Normal file
|
After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 238 KiB |
BIN
web/manual/assets/ch02/part-primitives-boolean/04-result.png
Normal file
|
After Width: | Height: | Size: 219 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/01-new-sketch.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/02-sketch-editor.png
Normal file
|
After Width: | Height: | Size: 349 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/03-rectangle.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/04-constraint-space.png
Normal file
|
After Width: | Height: | Size: 374 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/04-preview.png
Normal file
|
After Width: | Height: | Size: 969 B |
BIN
web/manual/assets/ch03/sketch-rectangle/05-closed.png
Normal file
|
After Width: | Height: | Size: 185 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/05-constraint-space.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
web/manual/assets/ch03/sketch-rectangle/06-closed.png
Normal file
|
After Width: | Height: | Size: 185 KiB |
BIN
web/manual/assets/ch04/partdesign-body-pad/01-sketch.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
web/manual/assets/ch04/partdesign-body-pad/02-pad-task.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
web/manual/assets/ch04/partdesign-body-pad/03-pad-result.png
Normal file
|
After Width: | Height: | Size: 21 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`,记录它所属章节与状态。
|
||||||
94
web/manual/content/ch01-ui.md
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
---
|
||||||
|
id: ch01
|
||||||
|
order: 1
|
||||||
|
title: 界面、文档与视图
|
||||||
|
level: core
|
||||||
|
---
|
||||||
|
|
||||||
|
# 第 1 章 界面、文档与视图
|
||||||
|
|
||||||
|
## 学习目标
|
||||||
|
|
||||||
|
- 认清 Web FreeCAD 的菜单栏、工作台、对象树、属性面板和三维视口。
|
||||||
|
- 新建文档,创建一个可检查的实体,并在属性面板中修改尺寸、位置与颜色。
|
||||||
|
- 用鼠标旋转、缩放视口,最后把文档保存到 OPFS 并确认保存结果。
|
||||||
|
|
||||||
|
## 1.1 界面分区
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
从上到下、从左到右认识五个区域:
|
||||||
|
|
||||||
|
1. **应用菜单**:File、Edit、View、Part 等,所有命令的入口。
|
||||||
|
2. **工作台选择器**:当前是 `Part`,切换后菜单和工具按钮会变化。
|
||||||
|
3. **对象树**:显示文档中的对象、标签和内部名称。
|
||||||
|
4. **属性面板**:显示选中对象的 View、Placement、Data 与几何统计。
|
||||||
|
5. **三维视口**:显示模型;左键旋转,滚轮缩放,右键平移。
|
||||||
|
|
||||||
|
## 1.2 新建文档
|
||||||
|
|
||||||
|
打开 `File → 新建 Document`。新建后对象树为空,状态栏会显示当前活动文档名。
|
||||||
|
本课程一律使用毫米作为长度单位;属性面板里的 `Length/Width/Height` 都按毫米填写。
|
||||||
|
|
||||||
|
## 1.3 创建第一个对象
|
||||||
|
|
||||||
|
打开 `Part → Primitives → Box`,在任务面板填入:
|
||||||
|
|
||||||
|
| 参数 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| Length | 60 mm |
|
||||||
|
| Width | 40 mm |
|
||||||
|
| Height | 20 mm |
|
||||||
|
|
||||||
|
点“应用尺寸并重算”,再把对象标签改成 `ManualCube`。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 1.4 属性面板与 Placement
|
||||||
|
|
||||||
|
选中对象后,属性面板分为:
|
||||||
|
|
||||||
|
- **View**:Label、Color、Visibility。
|
||||||
|
- **Placement**:Position(X/Y/Z)与旋转轴/角度。
|
||||||
|
- **Data**:Length、Width、Height 等参数。
|
||||||
|
- **Geometry/Volume/Bounds**:面数、三角面数、体积和包围盒。
|
||||||
|
|
||||||
|
把 Position 设为 `(10, 20, 30)`,点“应用位置与旋转”。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 1.5 视口导航
|
||||||
|
|
||||||
|
在视口里按住左键拖动可以旋转;滚轮缩放;右键拖动平移。
|
||||||
|
右上角的视图菜单可以切换等轴测、前视、顶视等标准视角。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 1.6 保存到 OPFS
|
||||||
|
|
||||||
|
打开右侧文件工具,点“保存 FCStd 到 OPFS”。状态栏出现
|
||||||
|
`Saved <文件名>.FCStd to OPFS` 即表示保存成功。Web 版默认写 OPFS,
|
||||||
|
只有用户点“下载”时才会落到本地磁盘。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 自检
|
||||||
|
|
||||||
|
- [ ] 对象树只有 `ManualCube` 一个对象。
|
||||||
|
- [ ] Length/Width/Height 分别为 60/40/20 mm。
|
||||||
|
- [ ] Position 为 (10, 20, 30) mm。
|
||||||
|
- [ ] 视口可以旋转和缩放。
|
||||||
|
- [ ] 状态栏显示保存成功。
|
||||||
|
|
||||||
|
## 常见错误
|
||||||
|
|
||||||
|
1. 把米直接填进毫米输入框,模型小一千倍。
|
||||||
|
2. 修改尺寸后没有点“应用尺寸并重算”,对象仍是默认 10 mm。
|
||||||
|
3. 只改了显示颜色但没有触发应用,保存后颜色丢失。
|
||||||
|
4. 保存后没有看状态栏,误以为文件已经下载到本地。
|
||||||
|
|
||||||
|
## 练习
|
||||||
|
|
||||||
|
1. 把 Box 改成 100 × 50 × 25 mm,观察体积和包围盒变化。
|
||||||
|
2. 再创建一个 Cylinder,比较两者在对象树中的命名规则。
|
||||||
|
3. 保存后刷新页面,从 OPFS 重新打开文档,确认对象仍在。
|
||||||
100
web/manual/content/ch02-part.md
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
---
|
||||||
|
id: ch02
|
||||||
|
order: 2
|
||||||
|
title: Part 图元与布尔
|
||||||
|
level: core
|
||||||
|
---
|
||||||
|
|
||||||
|
# 第 2 章 Part 图元与布尔
|
||||||
|
|
||||||
|
## 学习目标
|
||||||
|
|
||||||
|
- 从 Part 菜单创建 Box、Cylinder 等参数化图元。
|
||||||
|
- 在属性面板修改尺寸与 Placement,而不是反复重建对象。
|
||||||
|
- 用 Cut 做通孔,理解 Base/Tool 与布尔结果。
|
||||||
|
- 用 CheckGeometry 检查实体有效性,并看懂体积、面数、三角面数。
|
||||||
|
|
||||||
|
## 2.1 Part 菜单与工作流
|
||||||
|
|
||||||
|
Part 工作台把命令分成九组:Primitives、Solids、Boolean、Split、Compound、Copy、
|
||||||
|
Join、Feature、Inspection。初学者先掌握“图元 → 布尔 → 检查”这条主线。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
本例先建一个 80 × 60 × 20 的 Box(标签 `PartBase`),再建一个半径 15、高度 40 的
|
||||||
|
Cylinder(`Cylinder1`),把圆柱沿 Z 放到 `-10`,让它从底板下方穿到上方。
|
||||||
|
|
||||||
|
## 2.2 创建与修改图元
|
||||||
|
|
||||||
|
1. 打开 `Part → Primitives → Box`,任务面板填 Length/Width/Height。
|
||||||
|
2. 点“应用尺寸并重算”,把标签改为 `PartBase`。
|
||||||
|
3. 打开 `Part → Primitives → Cylinder`。圆柱会立即以默认参数创建。
|
||||||
|
4. 选中 `Cylinder1`,在属性面板的 Data 区把 `Radius` 改为 15、`Height` 改为 40。
|
||||||
|
5. 用 Placement 把 Position 设为 `(40, 30, -10)`。
|
||||||
|
|
||||||
|
> 图元创建后,尺寸与位置都在属性面板里改;重新打开命令只会再建一个新对象。
|
||||||
|
|
||||||
|
## 2.3 布尔 Cut
|
||||||
|
|
||||||
|
选中底板和圆柱后,打开 `Part → Boolean → Cut`。Part 会用当前选择(或前两个对象)
|
||||||
|
自动建立 `Cut1`,属性面板显示 Operation=Cut、Base=`PartBase`、Tool=`Cylinder1`。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
检查结果:
|
||||||
|
|
||||||
|
| 指标 | 值 |
|
||||||
|
|---|---|
|
||||||
|
| 体积 | 81862.83 mm³(= 96000 − 圆柱穿过部分) |
|
||||||
|
| Faces | 7 |
|
||||||
|
| Triangles | 124 |
|
||||||
|
| 包围盒 | 80 × 60 × 20 mm |
|
||||||
|
|
||||||
|
如果体积仍等于 96000,说明圆柱没有与底板相交:检查圆柱的高度与 Z 位置。
|
||||||
|
|
||||||
|
## 2.4 检查几何
|
||||||
|
|
||||||
|
选中 `Cut1`,打开 `Part → Inspection → Check Geometry`,勾选对象后点 “Check shapes”。
|
||||||
|
任务面板会列出 BOP 检查结果;有效实体应没有错误。
|
||||||
|
|
||||||
|

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

|
||||||
|
|
||||||
|
## 2.5 其他 Part 工具速查
|
||||||
|
|
||||||
|
| 组 | 命令 | 用途 |
|
||||||
|
|---|---|---|
|
||||||
|
| Boolean | `Part_Fuse` / `Part_Common` | 并集 / 交集 |
|
||||||
|
| Split | `Part_Slice` / `Part_SliceApart` / `Part_XOR` | 切片、拆开、异或 |
|
||||||
|
| Join | `Part_JoinConnect` / `Part_JoinEmbed` / `Part_JoinCutout` | 连接、嵌入、挖槽 |
|
||||||
|
| Compound | `Part_Compound` / `Part_ExplodeCompound` | 合成/炸开复合体 |
|
||||||
|
| Copy | `Part_SimpleCopy` / `Part_TransformedCopy` / `Part_RefineShape` | 复制与清理 |
|
||||||
|
| Feature | `Part_Extrude` / `Part_Revolve` / `Part_Loft` / `Part_Sweep` | 拉伸、旋转、放样、扫掠 |
|
||||||
|
| Dress-up | `Part_Fillet` / `Part_Chamfer` | 圆角 / 倒角 |
|
||||||
|
| Offset | `Part_Offset` / `Part_Offset2D` / `Part_Thickness` | 3D/2D 偏移、抽壳 |
|
||||||
|
| Inspection | `Part_CheckGeometry` / `Part_Defeaturing` | 几何检查、去特征 |
|
||||||
|
| 显示 | `Part_ColorPerFace` / `Part_SectionCut` | 逐面上色、剖切 |
|
||||||
|
|
||||||
|
完整命令与状态见附录“命令索引”。
|
||||||
|
|
||||||
|
## 自检
|
||||||
|
|
||||||
|
- [ ] 对象树有 PartBase、Cylinder1、Cut1 三个对象。
|
||||||
|
- [ ] Cylinder 的 Radius=15、Height=40,Position Z=-10。
|
||||||
|
- [ ] Cut1 体积约 81862.83 mm³,不是 96000。
|
||||||
|
- [ ] Cut1 的 Faces=7,Triangles=124。
|
||||||
|
- [ ] CheckGeometry 没有错误。
|
||||||
|
|
||||||
|
## 常见错误
|
||||||
|
|
||||||
|
1. 圆柱高度仍为默认 10、且位于底板下方,Cut 体积不变。
|
||||||
|
2. 只选中一个对象就执行 Cut,得到 “select two objects”。
|
||||||
|
3. 修改图元后没有重算,布尔仍用旧形状。
|
||||||
|
4. 把 Cut 的 Base/Tool 选反,得到相反的孔形。
|
||||||
|
|
||||||
|
## 练习
|
||||||
|
|
||||||
|
1. 把圆柱半径改为 10,观察体积变化,再恢复 15。
|
||||||
|
2. 用 `Part_Fuse` 把 PartBase 与 Cylinder1 合并,比较与 Cut 的差别。
|
||||||
|
3. 复制 Cut1(`Part_SimpleCopy`),再用 `Part_CheckGeometry` 检查副本。
|
||||||
118
web/manual/content/ch03-sketcher.md
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
---
|
||||||
|
id: ch03
|
||||||
|
order: 3
|
||||||
|
title: Sketcher 草图
|
||||||
|
level: core
|
||||||
|
---
|
||||||
|
|
||||||
|
# 第 3 章 Sketcher 草图
|
||||||
|
|
||||||
|
## 学习目标
|
||||||
|
|
||||||
|
- 在 XY 平面上新建草图,理解草图与文档对象的关系。
|
||||||
|
- 用“矩形”工具按坐标创建 4 条边,确认几何数量。
|
||||||
|
- 认识草图编辑器中的几何、约束、构造线、吸附与验证工具。
|
||||||
|
- 知道当前 Web 布局下草图面板的位置与操作顺序。
|
||||||
|
|
||||||
|
## 3.1 新建草图
|
||||||
|
|
||||||
|
在 Part 工作台打开 `Part → Sketcher → New Sketch`,任务面板会询问:
|
||||||
|
|
||||||
|
| 参数 | 说明 |
|
||||||
|
|---|---|
|
||||||
|
| Name | 草图名称,本例 `ManualSketch` |
|
||||||
|
| Support | Base plane 或 Document references |
|
||||||
|
| Plane | XY / XZ / YZ |
|
||||||
|
| Offset | 平面偏移 |
|
||||||
|
| Reverse | 反向 |
|
||||||
|
|
||||||
|
选 `Base plane`、`XY`、Offset 0,点 OK。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 3.2 草图编辑器
|
||||||
|
|
||||||
|
草图创建后进入编辑状态,左侧属性栏中可以看到:
|
||||||
|
|
||||||
|
- **Sketch elements**:Edge 1–4、顶点,以及选择/隐藏/删除操作。
|
||||||
|
- **Construction geometry**:构造线开关与批量切换。
|
||||||
|
- **绘图工具**:线、圆、弧、样条、矩形、多边形、槽、圆角、倒角等。
|
||||||
|
- **状态行**:`No drawing operation · N geometries`。
|
||||||
|
- **Curve mode**:矩形/中心矩形/长圆等模式。
|
||||||
|
- **Point 输入**:按 X/Y 坐标精确放置点。
|
||||||
|
- **Apply sketch tool**:用当前坐标创建曲线。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
> 当前 Web 版把草图编辑器放在属性栏内,面板较窄且需要滚动;这是布局边界,
|
||||||
|
> 不影响命令与几何数据。桌面版是独立的全屏草图视图。
|
||||||
|
|
||||||
|
## 3.3 用坐标画矩形
|
||||||
|
|
||||||
|
1. 点 `Rectangle` 工具,Curve mode 选 “Rectangle”。
|
||||||
|
2. Point 1 填 `X=0, Y=0`。
|
||||||
|
3. Point 2 填 `X=60, Y=40`。
|
||||||
|
4. 点 “Apply sketch tool”。
|
||||||
|
|
||||||
|
状态行变为 `4 geometries`,Sketch elements 列表出现 Edge 1–4,预览区显示 60×40 的矩形。
|
||||||
|
用坐标输入而不是鼠标点选,可以保证尺寸精确,也便于截图与复现。
|
||||||
|
|
||||||
|
## 3.4 约束与尺寸
|
||||||
|
|
||||||
|
草图几何创建后,约束决定它是否“完全约束”:
|
||||||
|
|
||||||
|
1. 在 Sketch elements 列表中点选一条边或一个顶点(可按住 Shift 多选)。
|
||||||
|
2. 打开 “Context actions”。
|
||||||
|
3. 在 Constraint 下拉框选择约束类型:Horizontal、Vertical、Coincident、Distance、Radius 等。
|
||||||
|
4. 点 “Set up constraint”;需要点的约束可在 Point 1/Point 2 下拉框选择端点。
|
||||||
|
5. 状态区会显示 `Valid constraints: yes/no`、缺失重合点、开放顶点等诊断。
|
||||||
|
|
||||||
|
常用命令:`Sketcher_ConstrainHorizontal`、`ConstrainVertical`、
|
||||||
|
`ConstrainCoincidentUnified`、`ConstrainDistance`、`ConstrainRadius`、
|
||||||
|
`ConstrainEqual`、`ConstrainSymmetric`、`ConstrainBlock`。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 3.5 验证与关闭
|
||||||
|
|
||||||
|
- `Sketcher_ValidateSketch`:检查缺失重合、开放顶点、退化几何、反向端点约束。
|
||||||
|
- `Sketcher_ToggleConstruction`:把选中边转为构造线。
|
||||||
|
- `Sketcher_Grid` / `Sketcher_Snap`:网格与吸附。
|
||||||
|
- `Sketcher_LeaveSketch` 或 “Close sketch”:退出编辑,回到三维视图。
|
||||||
|
|
||||||
|
关闭后草图仍保留在对象树中,可随时双击重新编辑。
|
||||||
|
|
||||||
|
## 3.6 Sketcher 命令速查
|
||||||
|
|
||||||
|
| 组 | 代表命令 |
|
||||||
|
|---|---|
|
||||||
|
| 线/折线 | `Sketcher_CreateLine`、`CreatePolyline`、`CreateBSpline` |
|
||||||
|
| 圆/弧 | `Sketcher_CreateCircle`、`CreateArc`、`Create3PointArc` |
|
||||||
|
| 矩形/多边形 | `Sketcher_CreateRectangle`、`CreateSquare`、`CreateRegularPolygon` |
|
||||||
|
| 槽/圆角 | `Sketcher_CreateSlot`、`CreateArcSlot`、`CreateFillet`、`CreateChamfer` |
|
||||||
|
| 约束 | `ConstrainCoincidentUnified`、`ConstrainHorizontal`、`ConstrainVertical`、`ConstrainDistance` |
|
||||||
|
| 编辑 | `ToggleConstruction`、`Trim`、`Extend`、`Mirror`、`ValidateSketch` |
|
||||||
|
| 视图/吸附 | `Grid`、`Snap`、`SwitchVirtualSpace`、`LeaveSketch` |
|
||||||
|
|
||||||
|
完整列表见附录命令索引(模块 Sketcher)。
|
||||||
|
|
||||||
|
## 自检
|
||||||
|
|
||||||
|
- [ ] 对象树有 `ManualSketch`。
|
||||||
|
- [ ] 草图状态行显示 `4 geometries`。
|
||||||
|
- [ ] Sketch elements 有 Edge 1–4。
|
||||||
|
- [ ] 预览区能看到 60×40 矩形。
|
||||||
|
- [ ] 能退出草图并重新进入编辑。
|
||||||
|
|
||||||
|
## 常见错误
|
||||||
|
|
||||||
|
1. 只填了一个点就点 Apply,得到零长度几何或创建失败。
|
||||||
|
2. Point 1/Point 2 填反导致矩形方向相反(尺寸仍正确)。
|
||||||
|
3. 约束前没有选中边/顶点,Constraint 下拉项被禁用。
|
||||||
|
4. 未关闭草图就切换工作台,任务状态可能被保留,先 Close sketch 再继续。
|
||||||
|
|
||||||
|
## 练习
|
||||||
|
|
||||||
|
1. 用 Rectangle 再画一个 20×20 的方框,观察几何数量从 4 变 8。
|
||||||
|
2. 选择一条边加 Horizontal 约束,再选择另一条边加 Vertical 约束。
|
||||||
|
3. 用 `ValidateSketch` 查看缺失重合点数量,并尝试用 Coincident 修复。
|
||||||
110
web/manual/content/ch04-partdesign.md
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
---
|
||||||
|
id: ch04
|
||||||
|
order: 4
|
||||||
|
title: PartDesign 实体建模
|
||||||
|
level: core
|
||||||
|
---
|
||||||
|
|
||||||
|
# 第 4 章 PartDesign 实体建模
|
||||||
|
|
||||||
|
## 学习目标
|
||||||
|
|
||||||
|
- 在 PartDesign 页面新建文档与 Body,理解 Body 是特征的容器。
|
||||||
|
- 在 Body 内创建 Sketch,用“矩形”生成封闭轮廓。
|
||||||
|
- 用 Pad 把草图拉伸为实体,设置长度、方向与两侧参数。
|
||||||
|
- 认识 Pocket、Revolution、Groove、Hole、Fillet/Chamfer、Pattern 的入口与顺序。
|
||||||
|
|
||||||
|
## 4.1 PartDesign 页面与 Body
|
||||||
|
|
||||||
|
Web 版 PartDesign 有独立页面:`/partdesign.html`。它提供:
|
||||||
|
|
||||||
|
- 新建文档 / 新建 Body / 撤销 / 重做 / 保存。
|
||||||
|
- 基准对象、克隆、ShapeBinder。
|
||||||
|
- 草图工具:矩形、圆形、创建草图、贴附。
|
||||||
|
- 基于草图的特征:Pad、Pocket、Hole、Revolution、Groove、Helix、Loft、Pipe。
|
||||||
|
- 变换特征:Mirrored、LinearPattern、PolarPattern、Scaled、MultiTransform。
|
||||||
|
- 修饰特征:Draft、Thickness、Fillet、Chamfer;Body 布尔运算。
|
||||||
|
|
||||||
|
第一步永远是“新建文档 → 新建 Body”。后续草图与特征都挂在当前 Body 下。
|
||||||
|
|
||||||
|
> 项目页的 Part 文档不能直接切换成 PartDesign;需要原生 ownership handoff。
|
||||||
|
> 初学时直接用 `/partdesign.html` 的 PartDesign 页面,避免混用两种文档所有者。
|
||||||
|
|
||||||
|
## 4.2 创建草图与矩形
|
||||||
|
|
||||||
|
1. 点“新建文档”,再点“新建 Body”。
|
||||||
|
2. 点“创建草图”,默认在 Body 的 XY 平面创建 `Sketch1`。
|
||||||
|
3. 点“矩形”,在草图中生成一个封闭矩形轮廓。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
草图必须在 Body 内、且轮廓封闭;否则 Pad/Pocket 会提示没有可用 Profile。
|
||||||
|
|
||||||
|
## 4.3 Pad:把草图拉成实体
|
||||||
|
|
||||||
|
点“Pad”打开基于草图的特征面板:
|
||||||
|
|
||||||
|
| 参数 | 本例 |
|
||||||
|
|---|---|
|
||||||
|
| Profile | `Sketch1` |
|
||||||
|
| Length | 10 mm |
|
||||||
|
| Sides | One side |
|
||||||
|
| Mode | Length |
|
||||||
|
| Offset | 0 |
|
||||||
|
| Taper angle | 0 |
|
||||||
|
| Side 2 | 不使用 |
|
||||||
|
| Reverse | 不勾选 |
|
||||||
|
|
||||||
|

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

|
||||||
|
|
||||||
|
## 4.4 后续特征的工作顺序
|
||||||
|
|
||||||
|
PartDesign 的特征按 Body 内顺序堆叠:
|
||||||
|
|
||||||
|
1. **Pad / Revolution / AdditivePipe / AdditiveLoft / AdditiveHelix**:加料。
|
||||||
|
2. **Pocket / Groove / SubtractivePipe / SubtractiveLoft / SubtractiveHelix**:减料。
|
||||||
|
3. **Hole**:标准孔,需选择放置面与孔参数。
|
||||||
|
4. **Fillet / Chamfer / Draft / Thickness**:修饰已有实体。
|
||||||
|
5. **Mirrored / LinearPattern / PolarPattern / MultiTransform**:复制与阵列。
|
||||||
|
6. **Boolean**:Body 之间的 Fuse/Cut/Common。
|
||||||
|
|
||||||
|
典型练习:在 Pad1 的顶面新建草图 → 画圆 → Pocket 贯穿 → 得到带孔实体。
|
||||||
|
|
||||||
|
## 4.5 命令速查
|
||||||
|
|
||||||
|
| 组 | 命令 |
|
||||||
|
|---|---|
|
||||||
|
| Body/草图 | `PartDesign_Body`、`PartDesign_NewSketch`、`PartDesign_CompSketches` |
|
||||||
|
| 加料 | `PartDesign_Pad`、`PartDesign_Revolution`、`PartDesign_AdditivePipe`、`AdditiveLoft`、`AdditiveHelix` |
|
||||||
|
| 减料 | `PartDesign_Pocket`、`PartDesign_Groove`、`SubtractivePipe`、`SubtractiveLoft`、`SubtractiveHelix` |
|
||||||
|
| 孔/修饰 | `PartDesign_Hole`、`PartDesign_Fillet`、`PartDesign_Chamfer`、`PartDesign_Draft`、`PartDesign_Thickness` |
|
||||||
|
| 变换 | `PartDesign_Mirrored`、`LinearPattern`、`PolarPattern`、`MultiTransform`、`Scaled` |
|
||||||
|
| 基准/引用 | `PartDesign_CompDatums`、`PartDesign_ShapeBinder`、`PartDesign_Clone`、`PartDesign_Boolean` |
|
||||||
|
|
||||||
|
完整状态见附录命令索引(模块 PartDesign)。
|
||||||
|
|
||||||
|
## 自检
|
||||||
|
|
||||||
|
- [ ] 文档内有 `Body1`,其下出现 `Sketch1` 与 `Pad1`。
|
||||||
|
- [ ] Pad 的 Profile 为 `Sketch1`,Length=10。
|
||||||
|
- [ ] 视口显示一个封闭实体,而不是线框草图。
|
||||||
|
- [ ] 能重新打开 Pad 面板并修改 Length 后重算。
|
||||||
|
- [ ] 知道 Pocket 需要新的草图与 Profile。
|
||||||
|
|
||||||
|
## 常见错误
|
||||||
|
|
||||||
|
1. 未新建 Body 就创建草图,特征没有容器。
|
||||||
|
2. 草图轮廓不封闭,Pad 找不到 Profile。
|
||||||
|
3. Pad 方向反了,实体伸到草图另一侧;勾选 Reverse 或改 Side。
|
||||||
|
4. 在同一 Body 里跳过顺序插入特征,导致父特征被覆盖。
|
||||||
|
5. 用项目页的 Part 文档直接切 PartDesign,出现 ownership handoff 提示。
|
||||||
|
|
||||||
|
## 练习
|
||||||
|
|
||||||
|
1. 把 Pad 的 Length 从 10 改为 20,观察体积与包围盒变化。
|
||||||
|
2. 在 Pad1 顶面新建草图,画一个圆,用 Pocket 做通孔。
|
||||||
|
3. 对 Pad1 的一条边做 Fillet,半径 3 mm,再改回 1 mm 比较。
|
||||||
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": []
|
||||||
|
}
|
||||||
269
web/manual/data/capture/ch01-ui-and-document.json
Normal file
@@ -0,0 +1,269 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/capture/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:08:26.848Z",
|
||||||
|
"chapter": "ch01",
|
||||||
|
"workflow": "ui-and-document",
|
||||||
|
"scenario": "manual/scenarios/ch01-ui.json",
|
||||||
|
"origin": "http://127.0.0.1:5181",
|
||||||
|
"ok": true,
|
||||||
|
"trace": [
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:08.382Z",
|
||||||
|
"action": "goto",
|
||||||
|
"url": "/project.html?workbench=Part"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:10.169Z",
|
||||||
|
"action": "waitFor",
|
||||||
|
"selector": "select[aria-label=\"Workbench\"]",
|
||||||
|
"text": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:11.729Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "nav[aria-label=\"Application menus\"] details"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:11.813Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "新建 Document"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:14.020Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:14.253Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "01-interface",
|
||||||
|
"bytes": 165728
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:14.323Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".part-menu > summary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:14.770Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "details.part-submenu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:15.119Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Part_Box\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:16.353Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:16.773Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Length\"]",
|
||||||
|
"value": 60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:16.807Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Width\"]",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:16.832Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Height\"]",
|
||||||
|
"value": 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:16.937Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "应用尺寸并重算"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:18.510Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:18.552Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:18.867Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Object Label\"]",
|
||||||
|
"value": "ManualCube"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:18.878Z",
|
||||||
|
"action": "press",
|
||||||
|
"key": "Enter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.050Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "02-part-box",
|
||||||
|
"bytes": 212824
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.179Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Position"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.591Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position X\"]",
|
||||||
|
"value": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.610Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position Y\"]",
|
||||||
|
"value": 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.647Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position Z\"]",
|
||||||
|
"value": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:20.734Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "应用位置与旋转"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:21.979Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:22.236Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "03-placement",
|
||||||
|
"bytes": 218043
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:22.296Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:22.608Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Object Color\"]",
|
||||||
|
"value": "#4a90d9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:22.612Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:23.443Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "04-properties",
|
||||||
|
"bytes": 52634
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:24.180Z",
|
||||||
|
"action": "drag",
|
||||||
|
"selector": "[aria-label=\"Imported native 3D view\"]",
|
||||||
|
"dx": -120,
|
||||||
|
"dy": -40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:24.383Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "05-viewport",
|
||||||
|
"bytes": 218276
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:25.595Z",
|
||||||
|
"action": "save",
|
||||||
|
"name": "web_project_document_3.FCStd",
|
||||||
|
"bytes": 2569,
|
||||||
|
"status": "Saved web_project_document_3.FCStd to OPFS (2569 bytes)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:26.399Z",
|
||||||
|
"action": "assertVisible",
|
||||||
|
"selector": ".fc-tree-text:has-text(\"ManualCube\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:26.618Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "06-saved",
|
||||||
|
"bytes": 287402
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:08:26.848Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "07-summary",
|
||||||
|
"bytes": 287402
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"shots": [
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/01-interface",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/01-interface.png",
|
||||||
|
"bytes": 165728,
|
||||||
|
"sha256": "a6b2b7b8ea4149233a9054b2d96a8a289f83366fef5c270dd8e0642245a3337d",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/02-part-box",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/02-part-box.png",
|
||||||
|
"bytes": 212824,
|
||||||
|
"sha256": "541ad0dcac5096d09124c6ab51f3d84db3b3c3901ae56a67ac970fee2a324281",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/03-placement",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/03-placement.png",
|
||||||
|
"bytes": 218043,
|
||||||
|
"sha256": "3ca3b5cf7c0466e57ae353edee4a19a0ecd90537d36098e43a6fc26cfe86c4c4",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/04-properties",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/04-properties.png",
|
||||||
|
"bytes": 52634,
|
||||||
|
"sha256": "564f2483692cc4e7bd746394498c7a592d6b3dcaa70e0ab2ee6a2c4a173120ab",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "aside.properties"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/05-viewport",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/05-viewport.png",
|
||||||
|
"bytes": 218276,
|
||||||
|
"sha256": "89b20c2f977311a6e1206637fb04400810b9a9191f9152e5e0bef4525d589061",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/06-saved",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/06-saved.png",
|
||||||
|
"bytes": 287402,
|
||||||
|
"sha256": "5276720fee5bc4d9f1c9583a35f18ca3cf092cf853dfc43517d118d305835ffa",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch01/ui-and-document/07-summary",
|
||||||
|
"file": "manual/assets/ch01/ui-and-document/07-summary.png",
|
||||||
|
"bytes": 287402,
|
||||||
|
"sha256": "5276720fee5bc4d9f1c9583a35f18ca3cf092cf853dfc43517d118d305835ffa",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pageErrors": [],
|
||||||
|
"consoleErrors": []
|
||||||
|
}
|
||||||
314
web/manual/data/capture/ch02-part-primitives-boolean.json
Normal file
@@ -0,0 +1,314 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/capture/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:21:43.209Z",
|
||||||
|
"chapter": "ch02",
|
||||||
|
"workflow": "part-primitives-boolean",
|
||||||
|
"scenario": "manual/scenarios/ch02-part.json",
|
||||||
|
"origin": "http://127.0.0.1:5181",
|
||||||
|
"ok": true,
|
||||||
|
"trace": [
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:19.724Z",
|
||||||
|
"action": "goto",
|
||||||
|
"url": "/project.html?workbench=Part"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:20.778Z",
|
||||||
|
"action": "waitFor",
|
||||||
|
"selector": "select[aria-label=\"Workbench\"]",
|
||||||
|
"text": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:22.653Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "nav[aria-label=\"Application menus\"] details"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:22.815Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "新建 Document"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:24.818Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:24.903Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".part-menu > summary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:25.298Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "details.part-submenu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:25.606Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Part_Box\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:26.539Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:26.564Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Length\"]",
|
||||||
|
"value": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:26.588Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Width\"]",
|
||||||
|
"value": 60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:26.602Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Height\"]",
|
||||||
|
"value": 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:26.721Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "应用尺寸并重算"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:27.974Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:28.040Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:28.062Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Object Label\"]",
|
||||||
|
"value": "PartBase"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:28.070Z",
|
||||||
|
"action": "press",
|
||||||
|
"key": "Enter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:28.699Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".part-menu > summary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:28.989Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "details.part-submenu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:29.275Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Part_Cylinder\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:30.703Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:31.121Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Property Radius\"]",
|
||||||
|
"value": 15
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:31.148Z",
|
||||||
|
"action": "press",
|
||||||
|
"key": "Tab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:32.062Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Property Height\"]",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:32.081Z",
|
||||||
|
"action": "press",
|
||||||
|
"key": "Tab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.285Z",
|
||||||
|
"action": "assertValue",
|
||||||
|
"selector": "input[aria-label=\"Property Radius\"]",
|
||||||
|
"value": "15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.288Z",
|
||||||
|
"action": "assertValue",
|
||||||
|
"selector": "input[aria-label=\"Property Height\"]",
|
||||||
|
"value": "40"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.297Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.316Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Object Label\"]",
|
||||||
|
"value": "PartHole"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.323Z",
|
||||||
|
"action": "press",
|
||||||
|
"key": "Enter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:33.892Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Position"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:34.063Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position X\"]",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:34.085Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position Y\"]",
|
||||||
|
"value": 30
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:34.105Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Position Z\"]",
|
||||||
|
"value": -10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:34.194Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "应用位置与旋转"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:35.241Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:35.555Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "01-primitives",
|
||||||
|
"bytes": 226412
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:35.605Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".part-menu > summary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:35.887Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "details.part-submenu"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:36.180Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Part_Cut\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:38.389Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:38.393Z",
|
||||||
|
"action": "assertVisible",
|
||||||
|
"selector": ".fc-tree-text:has-text(\"Cut\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:38.570Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "02-boolean-cut",
|
||||||
|
"bytes": 222860
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:38.652Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": ".fc-tree-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:38.653Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:39.686Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Part_CheckGeometry\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:40.919Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "03-check-geometry",
|
||||||
|
"bytes": 244203
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:41.014Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close task / Cancel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:41.245Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "04-result",
|
||||||
|
"bytes": 224664
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:21:43.209Z",
|
||||||
|
"action": "save",
|
||||||
|
"name": "web_project_document_3.FCStd",
|
||||||
|
"bytes": 5026,
|
||||||
|
"status": "Saved web_project_document_3.FCStd to OPFS (5026 bytes)"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"shots": [
|
||||||
|
{
|
||||||
|
"id": "ch02/part-primitives-boolean/01-primitives",
|
||||||
|
"file": "manual/assets/ch02/part-primitives-boolean/01-primitives.png",
|
||||||
|
"bytes": 226412,
|
||||||
|
"sha256": "10a819e0bf885dbe881601246e422b28450ca8ffd5880d575177e70e0ea670f3",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch02/part-primitives-boolean/02-boolean-cut",
|
||||||
|
"file": "manual/assets/ch02/part-primitives-boolean/02-boolean-cut.png",
|
||||||
|
"bytes": 222860,
|
||||||
|
"sha256": "f5dd55dcff3545363fc83838f05c4285927d6cddedbe54ca9168b486187bd8b1",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch02/part-primitives-boolean/03-check-geometry",
|
||||||
|
"file": "manual/assets/ch02/part-primitives-boolean/03-check-geometry.png",
|
||||||
|
"bytes": 244203,
|
||||||
|
"sha256": "f6773dfc61eeabd9c7b464845c0ca10b07b9a940cbf6a3d9787c7c601bcc6959",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch02/part-primitives-boolean/04-result",
|
||||||
|
"file": "manual/assets/ch02/part-primitives-boolean/04-result.png",
|
||||||
|
"bytes": 224664,
|
||||||
|
"sha256": "89598c30b8f23317adf0c37c6bd84a481112dfe62af3984ee43665a0232f7e4b",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pageErrors": [],
|
||||||
|
"consoleErrors": []
|
||||||
|
}
|
||||||
193
web/manual/data/capture/ch03-sketch-rectangle.json
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/capture/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:49:00.803Z",
|
||||||
|
"chapter": "ch03",
|
||||||
|
"workflow": "sketch-rectangle",
|
||||||
|
"scenario": "manual/scenarios/ch03-sketcher.json",
|
||||||
|
"origin": "http://127.0.0.1:5181",
|
||||||
|
"ok": true,
|
||||||
|
"trace": [
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:43.851Z",
|
||||||
|
"action": "goto",
|
||||||
|
"url": "/project.html?workbench=Part"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:45.223Z",
|
||||||
|
"action": "waitFor",
|
||||||
|
"selector": "select[aria-label=\"Workbench\"]",
|
||||||
|
"text": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:46.872Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "nav[aria-label=\"Application menus\"] details"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:47.167Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "新建 Document"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:49.170Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:49.172Z",
|
||||||
|
"action": "eval"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:50.543Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "button[data-command=\"Sketcher_NewSketch\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:51.560Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") input",
|
||||||
|
"value": "ManualSketch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:51.569Z",
|
||||||
|
"action": "select",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") select >> nth=1",
|
||||||
|
"label": "XY"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:51.792Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "01-new-sketch",
|
||||||
|
"bytes": 180723
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:51.881Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") button:has-text(\"OK\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:54.818Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "02-sketch-editor",
|
||||||
|
"bytes": 357609
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:54.933Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Rectangle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:55.342Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 1 X\"]",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:55.370Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 1 Y\"]",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:55.386Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 2 X\"]",
|
||||||
|
"value": 60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:55.399Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 2 Y\"]",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:55.456Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Apply sketch tool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:57.063Z",
|
||||||
|
"action": "assertAnyText",
|
||||||
|
"selector": "p[role=\"status\"]",
|
||||||
|
"contains": "4 geometries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:57.245Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "03-rectangle",
|
||||||
|
"bytes": 131052
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:57.328Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Constraint virtual spaces"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:58.399Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "05-constraint-space",
|
||||||
|
"bytes": 130940
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:58.524Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Close sketch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:48:59.578Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "06-closed",
|
||||||
|
"bytes": 189153
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:49:00.803Z",
|
||||||
|
"action": "save",
|
||||||
|
"name": "web_project_document_3.FCStd",
|
||||||
|
"bytes": 3321,
|
||||||
|
"status": "Saved web_project_document_3.FCStd to OPFS (3321 bytes)"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"shots": [
|
||||||
|
{
|
||||||
|
"id": "ch03/sketch-rectangle/01-new-sketch",
|
||||||
|
"file": "manual/assets/ch03/sketch-rectangle/01-new-sketch.png",
|
||||||
|
"bytes": 180723,
|
||||||
|
"sha256": "2d02c81da960ad62363feac743616bf7e50b7a6b371d81fc6492203a6fbda783",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch03/sketch-rectangle/02-sketch-editor",
|
||||||
|
"file": "manual/assets/ch03/sketch-rectangle/02-sketch-editor.png",
|
||||||
|
"bytes": 357609,
|
||||||
|
"sha256": "2da325dcfa52f02ad2656864ba2802a2f122599575d385b0219641c4ca7e2f34",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch03/sketch-rectangle/03-rectangle",
|
||||||
|
"file": "manual/assets/ch03/sketch-rectangle/03-rectangle.png",
|
||||||
|
"bytes": 131052,
|
||||||
|
"sha256": "4e90188a9d943be970880a98f7d3bbab0b78dce7a195c4f15c234f6c1b29833d",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch03/sketch-rectangle/05-constraint-space",
|
||||||
|
"file": "manual/assets/ch03/sketch-rectangle/05-constraint-space.png",
|
||||||
|
"bytes": 130940,
|
||||||
|
"sha256": "db1381873ab43d74c9c1dc2e823e4a0c79005ae1b7dce1ebdb1888e61e9a3505",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch03/sketch-rectangle/06-closed",
|
||||||
|
"file": "manual/assets/ch03/sketch-rectangle/06-closed.png",
|
||||||
|
"bytes": 189153,
|
||||||
|
"sha256": "219a84d4fb9fc3bb01dcc93edee04d7a8614b28a4867ed126750c0e03ba2a21e",
|
||||||
|
"fullPage": true,
|
||||||
|
"selector": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pageErrors": [],
|
||||||
|
"consoleErrors": []
|
||||||
|
}
|
||||||
110
web/manual/data/capture/ch04-partdesign-body-pad.json
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/capture/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:57:41.699Z",
|
||||||
|
"chapter": "ch04",
|
||||||
|
"workflow": "partdesign-body-pad",
|
||||||
|
"scenario": "manual/scenarios/ch04-partdesign.json",
|
||||||
|
"origin": "http://127.0.0.1:5181",
|
||||||
|
"ok": true,
|
||||||
|
"trace": [
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:27.407Z",
|
||||||
|
"action": "goto",
|
||||||
|
"url": "/partdesign.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:29.238Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "新建文档"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:31.470Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "新建 Body"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:33.712Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "创建草图"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:35.150Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "矩形"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:37.221Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "01-sketch",
|
||||||
|
"bytes": 16000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:37.335Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "Pad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:38.252Z",
|
||||||
|
"action": "select",
|
||||||
|
"selector": "select[aria-label=\"Feature Profile\"]",
|
||||||
|
"label": "Sketch1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:38.273Z",
|
||||||
|
"action": "fill",
|
||||||
|
"selector": "input[aria-label=\"Feature Length\"]",
|
||||||
|
"value": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:38.439Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "02-pad-task",
|
||||||
|
"bytes": 30838
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:38.505Z",
|
||||||
|
"action": "click",
|
||||||
|
"selector": "创建 Pad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:41.687Z",
|
||||||
|
"action": "shot",
|
||||||
|
"name": "03-pad-result",
|
||||||
|
"bytes": 21494
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-13T03:57:41.699Z",
|
||||||
|
"action": "assertAnyText",
|
||||||
|
"selector": "body",
|
||||||
|
"contains": "Pad"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"shots": [
|
||||||
|
{
|
||||||
|
"id": "ch04/partdesign-body-pad/01-sketch",
|
||||||
|
"file": "manual/assets/ch04/partdesign-body-pad/01-sketch.png",
|
||||||
|
"bytes": 16000,
|
||||||
|
"sha256": "a7c2884a4889b0ad4f39076070ec0010f696564616ca5955391ddb5b71c774d6",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "canvas"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch04/partdesign-body-pad/02-pad-task",
|
||||||
|
"file": "manual/assets/ch04/partdesign-body-pad/02-pad-task.png",
|
||||||
|
"bytes": 30838,
|
||||||
|
"sha256": "451b86211060842d25e54de9015a091312af3d870c63b6726f0e9254b52f2796",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "fieldset:has-text(\"创建 Pad\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ch04/partdesign-body-pad/03-pad-result",
|
||||||
|
"file": "manual/assets/ch04/partdesign-body-pad/03-pad-result.png",
|
||||||
|
"bytes": 21494,
|
||||||
|
"sha256": "ebbc2c41a1ee346f0d72f57ecee5eca7a695df9f2307438be45c5d441d7a9329",
|
||||||
|
"fullPage": false,
|
||||||
|
"selector": "canvas"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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": []
|
||||||
|
}
|
||||||
39
web/manual/data/coverage-audit.json
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/coverage/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:05:48.506Z",
|
||||||
|
"modules": 32,
|
||||||
|
"unknownModules": [],
|
||||||
|
"nativeHandlers": 196,
|
||||||
|
"nativeMapped": 196,
|
||||||
|
"desktopRecords": 1492,
|
||||||
|
"registryCommands": 306,
|
||||||
|
"routes": 1296,
|
||||||
|
"byChapter": {
|
||||||
|
"ch00": 237,
|
||||||
|
"ch01": 0,
|
||||||
|
"ch02": 93,
|
||||||
|
"ch03": 141,
|
||||||
|
"ch04": 96,
|
||||||
|
"ch05": 39,
|
||||||
|
"ch06": 51,
|
||||||
|
"ch07": 9,
|
||||||
|
"ch08": 104,
|
||||||
|
"ch09": 208,
|
||||||
|
"ch10": 139,
|
||||||
|
"ch11": 145,
|
||||||
|
"ch12": 105,
|
||||||
|
"ch13": 235,
|
||||||
|
"ch14": 0,
|
||||||
|
"ch15": 0
|
||||||
|
},
|
||||||
|
"byStatus": {
|
||||||
|
"verified": 12,
|
||||||
|
"detailed": 303,
|
||||||
|
"overview": 1284,
|
||||||
|
"boundary": 3
|
||||||
|
},
|
||||||
|
"ok": true,
|
||||||
|
"verified": 12,
|
||||||
|
"workflows": 14,
|
||||||
|
"screenshots": 34
|
||||||
|
}
|
||||||
40
web/manual/data/final-status.json
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/final-status/v1",
|
||||||
|
"generatedAt": "2026-11-13T13:10:00+08:00",
|
||||||
|
"state": "complete",
|
||||||
|
"chapters": 15,
|
||||||
|
"chaptersWithAppendix": 16,
|
||||||
|
"screenshots": 34,
|
||||||
|
"commands": 1602,
|
||||||
|
"modules": 32,
|
||||||
|
"nativeHandlers": 196,
|
||||||
|
"verifiedCommands": 12,
|
||||||
|
"workflows": 14,
|
||||||
|
"boundaries": 7,
|
||||||
|
"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",
|
||||||
|
"gapLedger": "web/manual/data/gap-ledger.json",
|
||||||
|
"knownBoundaries": [
|
||||||
|
"TechDraw 跨 Worker 文档桥",
|
||||||
|
"FEM 原生结果对象",
|
||||||
|
"CAM OpenCAMLib 路径",
|
||||||
|
"glTF 原生导入/导出",
|
||||||
|
"Cloud 远程存储",
|
||||||
|
"Material 原生库兼容",
|
||||||
|
"OpenSCAD 二次编译崩溃"
|
||||||
|
],
|
||||||
|
"notes": [
|
||||||
|
"草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。",
|
||||||
|
"项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。",
|
||||||
|
"Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。"
|
||||||
|
]
|
||||||
|
}
|
||||||
94
web/manual/data/gap-ledger.json
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/gaps/v1",
|
||||||
|
"generatedAt": "2026-11-13T05:08:46.050Z",
|
||||||
|
"verified": 12,
|
||||||
|
"fixNeeded": [],
|
||||||
|
"boundaries": [
|
||||||
|
{
|
||||||
|
"id": "b-techdraw-worker",
|
||||||
|
"module": "TechDraw",
|
||||||
|
"title": "TechDraw 跨 Worker 文档桥",
|
||||||
|
"detail": "页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/TechDraw/App/DrawPage.cpp",
|
||||||
|
"freecad-source/src/Mod/TechDraw/App/DrawViewPart.cpp"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/tools/manual/evidence/ch11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-fem-native",
|
||||||
|
"module": "Fem",
|
||||||
|
"title": "FEM 原生结果对象",
|
||||||
|
"detail": "FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/Fem/App/FemMeshObject.cpp",
|
||||||
|
"web/docs/current/web-freecad-gaps-fem.md"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/tools/manual/evidence/ch12"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-cam-opencamlib",
|
||||||
|
"module": "CAM",
|
||||||
|
"title": "CAM OpenCAMLib 路径",
|
||||||
|
"detail": "Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/CAM/App/AppPath.cpp",
|
||||||
|
"web/docs/current/cam-teaching-gap.md"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/tools/manual/evidence/ch10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-gltf-native",
|
||||||
|
"module": "Import",
|
||||||
|
"title": "glTF 原生导入/导出",
|
||||||
|
"detail": "OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/Import/App/ReaderGltf.cpp",
|
||||||
|
"freecad-source/src/Mod/Import/App/WriterGltf.cpp"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/manual/content/ch07-import-export.md"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-cloud-remote",
|
||||||
|
"module": "Cloud",
|
||||||
|
"title": "Cloud 远程存储",
|
||||||
|
"detail": "Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"web/src/cloud.worker.ts"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/manual/content/ch13-specialists.md"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-material-sparse",
|
||||||
|
"module": "Material",
|
||||||
|
"title": "Material 原生库兼容",
|
||||||
|
"detail": "Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/Material/App/MaterialManager.cpp"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/docs/current/freecad-official-case-ledger.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b-openscad-recompile",
|
||||||
|
"module": "OpenSCAD",
|
||||||
|
"title": "OpenSCAD 二次编译崩溃",
|
||||||
|
"detail": "同一实例连续编译可能崩溃;逐次保存并重启实例。",
|
||||||
|
"desktopRefs": [
|
||||||
|
"freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp"
|
||||||
|
],
|
||||||
|
"status": "boundary",
|
||||||
|
"evidence": "web/manual/content/ch13-specialists.md"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"notes": [
|
||||||
|
"草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。",
|
||||||
|
"项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。",
|
||||||
|
"Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。"
|
||||||
|
]
|
||||||
|
}
|
||||||
30
web/manual/data/inventory-snapshot.json
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/inventory/v1",
|
||||||
|
"generatedAt": "2026-11-13T03:05:48.516Z",
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"path": "public/api/workbench-command-matrix.json",
|
||||||
|
"sha256": "0f467b45c2ed0105bc3f9d58a6149f18a6dc65dd86a93fc6b4f53cd1a39cfe5c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "public/api/desktop-command-routes.json",
|
||||||
|
"sha256": "6b21e4b2a7b06f5516433771bba06d61d1e7f3daa0e9a68c83aad6e000b4a25a"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "src/module-registry.generated.ts",
|
||||||
|
"sha256": "359b2c34821e8b0696e584d2c840bc21e339a6dabe177746378748cd9bdb1af1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "teaching/data/features.json",
|
||||||
|
"sha256": "b9b9ef9fdb612d6a6e92b828be3749be92096b68892bf762e16c33f622571c35"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "teaching/data/cases.json",
|
||||||
|
"sha256": "d871f200bfd504f44bdf87216e6e09eb4ae2a2971fc66434542367e2cb0e35fc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "docs/current/freecad-official-case-ledger.json",
|
||||||
|
"sha256": "d03239f0faef109020f99b3ae2a4d0bd1ef8396b656f52278942914fa57d8bc7"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
30186
web/manual/data/manual-features.json
Normal file
42
web/manual/data/page-check.json
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/page-check/v1",
|
||||||
|
"generatedAt": "2026-11-13T05:09:11.163Z",
|
||||||
|
"url": "http://127.0.0.1:5190/manual.html",
|
||||||
|
"viewports": [
|
||||||
|
{
|
||||||
|
"viewport": {
|
||||||
|
"width": 1440,
|
||||||
|
"height": 900
|
||||||
|
},
|
||||||
|
"status": 200,
|
||||||
|
"errors": [],
|
||||||
|
"failed": [],
|
||||||
|
"searchHits": 4,
|
||||||
|
"chapters": 15,
|
||||||
|
"sections": 119,
|
||||||
|
"images": 33,
|
||||||
|
"brokenImages": [],
|
||||||
|
"commandRows": 1602,
|
||||||
|
"overflow": 0,
|
||||||
|
"searchSize": 1736
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"viewport": {
|
||||||
|
"width": 390,
|
||||||
|
"height": 844
|
||||||
|
},
|
||||||
|
"status": 200,
|
||||||
|
"errors": [],
|
||||||
|
"failed": [],
|
||||||
|
"searchHits": 4,
|
||||||
|
"chapters": 15,
|
||||||
|
"sections": 119,
|
||||||
|
"images": 33,
|
||||||
|
"brokenImages": [],
|
||||||
|
"commandRows": 1602,
|
||||||
|
"overflow": 0,
|
||||||
|
"searchSize": 1736
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ok": true
|
||||||
|
}
|
||||||
BIN
web/manual/fixtures/ch01-ui-and-document.FCStd
Normal file
BIN
web/manual/fixtures/ch02-part-primitives-boolean.FCStd
Normal file
BIN
web/manual/fixtures/ch03-sketch-rectangle.FCStd
Normal file
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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
58
web/manual/scenarios/ch01-ui.json
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/scenario/v1",
|
||||||
|
"chapter": "ch01",
|
||||||
|
"workflow": "ui-and-document",
|
||||||
|
"title": "界面、文档、对象树、属性、视图与保存",
|
||||||
|
"actions": [
|
||||||
|
{ "type": "goto", "url": "/project.html?workbench=Part" },
|
||||||
|
{ "type": "waitFor", "selector": "select[aria-label=\"Workbench\"]" },
|
||||||
|
{ "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": 2200 },
|
||||||
|
{ "type": "eval", "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" },
|
||||||
|
{ "type": "shot", "name": "01-interface", "fullPage": true },
|
||||||
|
{ "type": "click", "selector": ".part-menu > summary", "timeout": 30000 },
|
||||||
|
{ "type": "wait", "ms": 300 },
|
||||||
|
{ "type": "click", "selector": "details.part-submenu", "hasText": "Primitives", "target": ":scope > summary" },
|
||||||
|
{ "type": "wait", "ms": 300 },
|
||||||
|
{ "type": "click", "selector": "button[data-command=\"Part_Box\"]" },
|
||||||
|
{ "type": "wait", "ms": 1200 },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||||||
|
{ "type": "wait", "ms": 400 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Length\"]", "value": 60 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Width\"]", "value": 40 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Height\"]", "value": 20 },
|
||||||
|
{ "type": "click", "role": "button", "name": "应用尺寸并重算", "exact": true },
|
||||||
|
{ "type": "wait", "ms": 1500 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||||||
|
{ "type": "wait", "ms": 300 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Object Label\"]", "value": "ManualCube" },
|
||||||
|
{ "type": "press", "key": "Enter" },
|
||||||
|
{ "type": "wait", "ms": 800 },
|
||||||
|
{ "type": "shot", "name": "02-part-box", "fullPage": true },
|
||||||
|
{ "type": "click", "role": "button", "name": "Position", "exact": true },
|
||||||
|
{ "type": "wait", "ms": 400 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position X\"]", "value": 10 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position Y\"]", "value": 20 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position Z\"]", "value": 30 },
|
||||||
|
{ "type": "click", "role": "button", "name": "应用位置与旋转", "exact": true },
|
||||||
|
{ "type": "wait", "ms": 1200 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||||||
|
{ "type": "shot", "name": "03-placement", "fullPage": true },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "ManualCube" },
|
||||||
|
{ "type": "wait", "ms": 300 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Object Color\"]", "value": "#4a90d9" },
|
||||||
|
{ "type": "eval", "script": "document.querySelector('input[aria-label=\"Object Color\"]')?.dispatchEvent(new Event('change', { bubbles: true }))" },
|
||||||
|
{ "type": "wait", "ms": 600 },
|
||||||
|
{ "type": "shot", "name": "04-properties", "selector": "aside.properties" },
|
||||||
|
{ "type": "drag", "selector": "[aria-label=\"Imported native 3D view\"]", "dx": -120, "dy": -40 },
|
||||||
|
{ "type": "shot", "name": "05-viewport", "fullPage": true },
|
||||||
|
{ "type": "save" },
|
||||||
|
{ "type": "wait", "ms": 800 },
|
||||||
|
{ "type": "assertVisible", "selector": ".fc-tree-text:has-text(\"ManualCube\")" },
|
||||||
|
{ "type": "shot", "name": "06-saved", "fullPage": true },
|
||||||
|
{ "type": "shot", "name": "07-summary", "fullPage": true }
|
||||||
|
]
|
||||||
|
}
|
||||||
82
web/manual/scenarios/ch02-part.json
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/scenario/v1",
|
||||||
|
"chapter": "ch02",
|
||||||
|
"workflow": "part-primitives-boolean",
|
||||||
|
"title": "Part 图元、布尔与检查",
|
||||||
|
"actions": [
|
||||||
|
{ "type": "goto", "url": "/project.html?workbench=Part" },
|
||||||
|
{ "type": "waitFor", "selector": "select[aria-label=\"Workbench\"]" },
|
||||||
|
{ "type": "wait", "ms": 1000 },
|
||||||
|
{ "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": ".part-menu > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "details.part-submenu", "hasText": "Primitives", "target": ":scope > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "button[data-command=\"Part_Box\"]" },
|
||||||
|
{ "type": "wait", "ms": 900 },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Length\"]", "value": 80 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Width\"]", "value": 60 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Height\"]", "value": 20 },
|
||||||
|
{ "type": "click", "role": "button", "name": "应用尺寸并重算", "exact": true },
|
||||||
|
{ "type": "wait", "ms": 1200 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Object Label\"]", "value": "PartBase" },
|
||||||
|
{ "type": "press", "key": "Enter" },
|
||||||
|
{ "type": "wait", "ms": 600 },
|
||||||
|
|
||||||
|
{ "type": "click", "selector": ".part-menu > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "details.part-submenu", "hasText": "Primitives", "target": ":scope > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "button[data-command=\"Part_Cylinder\"]" },
|
||||||
|
{ "type": "wait", "ms": 1400 },
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cylinder" },
|
||||||
|
{ "type": "wait", "ms": 400 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Property Radius\"]", "value": 15 },
|
||||||
|
{ "type": "press", "key": "Tab" },
|
||||||
|
{ "type": "wait", "ms": 900 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Property Height\"]", "value": 40 },
|
||||||
|
{ "type": "press", "key": "Tab" },
|
||||||
|
{ "type": "wait", "ms": 1200 },
|
||||||
|
{ "type": "assertValue", "selector": "input[aria-label=\"Property Radius\"]", "value": 15 },
|
||||||
|
{ "type": "assertValue", "selector": "input[aria-label=\"Property Height\"]", "value": 40 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true, "optional": true },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Object Label\"]", "value": "PartHole" },
|
||||||
|
{ "type": "press", "key": "Enter" },
|
||||||
|
{ "type": "wait", "ms": 500 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Position", "exact": true },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position X\"]", "value": 40 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position Y\"]", "value": 30 },
|
||||||
|
{ "type": "fill", "selector": "input[aria-label=\"Position Z\"]", "value": -10 },
|
||||||
|
{ "type": "click", "role": "button", "name": "应用位置与旋转", "exact": true },
|
||||||
|
{ "type": "wait", "ms": 1000 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||||||
|
{ "type": "shot", "name": "01-primitives", "fullPage": true },
|
||||||
|
|
||||||
|
{ "type": "click", "selector": ".part-menu > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "details.part-submenu", "hasText": "Boolean", "target": ":scope > summary" },
|
||||||
|
{ "type": "wait", "ms": 250 },
|
||||||
|
{ "type": "click", "selector": "button[data-command=\"Part_Cut\"]" },
|
||||||
|
{ "type": "wait", "ms": 2200 },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true, "optional": true },
|
||||||
|
{ "type": "assertVisible", "selector": ".fc-tree-text:has-text(\"Cut\")" },
|
||||||
|
{ "type": "shot", "name": "02-boolean-cut", "fullPage": true },
|
||||||
|
|
||||||
|
{ "type": "click", "selector": ".fc-tree-text", "hasText": "Cut" },
|
||||||
|
{ "type": "eval", "script": "const m=document.querySelector('.part-menu'); if(m) m.open=true; for(const d of document.querySelectorAll('details.part-submenu')) d.open=true" },
|
||||||
|
{ "type": "wait", "ms": 400 },
|
||||||
|
{ "type": "click", "selector": "button[data-command=\"Part_CheckGeometry\"]", "optional": true },
|
||||||
|
{ "type": "wait", "ms": 1000 },
|
||||||
|
{ "type": "shot", "name": "03-check-geometry", "fullPage": true },
|
||||||
|
{ "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true },
|
||||||
|
{ "type": "shot", "name": "04-result", "fullPage": true },
|
||||||
|
{ "type": "save" }
|
||||||
|
]
|
||||||
|
}
|
||||||
171
web/manual/scenarios/ch03-sketcher.json
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/scenario/v1",
|
||||||
|
"chapter": "ch03",
|
||||||
|
"workflow": "sketch-rectangle",
|
||||||
|
"title": "Sketcher 草图、矩形与约束入口",
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"type": "goto",
|
||||||
|
"url": "/project.html?workbench=Part"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "waitFor",
|
||||||
|
"selector": "select[aria-label=\"Workbench\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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": "eval",
|
||||||
|
"script": "const m=document.querySelector('.part-menu'); if(m) m.open=true; for(const d of document.querySelectorAll('details.part-submenu')) d.open=true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 300
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"selector": "button[data-command=\"Sketcher_NewSketch\"]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 1000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") input",
|
||||||
|
"value": "ManualSketch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "select",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") select >> nth=1",
|
||||||
|
"label": "XY"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "01-new-sketch",
|
||||||
|
"fullPage": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"selector": "fieldset:has-text(\"New Sketch\") button:has-text(\"OK\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 2600
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "02-sketch-editor",
|
||||||
|
"fullPage": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "Rectangle",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 400
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 1 X\"]",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 1 Y\"]",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 2 X\"]",
|
||||||
|
"value": 60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "input[aria-label=\"Point 2 Y\"]",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "Apply sketch tool",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 400
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 1200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "assertAnyText",
|
||||||
|
"selector": "p[role=\"status\"]",
|
||||||
|
"contains": "4 geometries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "03-rectangle",
|
||||||
|
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "Constraint virtual spaces",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "05-constraint-space",
|
||||||
|
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "Close sketch",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "06-closed",
|
||||||
|
"fullPage": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "save"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
106
web/manual/scenarios/ch04-partdesign.json
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-manual/scenario/v1",
|
||||||
|
"chapter": "ch04",
|
||||||
|
"workflow": "partdesign-body-pad",
|
||||||
|
"title": "PartDesign Body、草图与 Pad",
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"type": "goto",
|
||||||
|
"url": "/partdesign.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 1200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "新建文档",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 2200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "新建 Body",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 2200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "创建草图",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 1400
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "矩形",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 1500
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "01-sketch",
|
||||||
|
"selector": "canvas"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "Pad",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 900
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "select",
|
||||||
|
"selector": "select[aria-label=\"Feature Profile\"]",
|
||||||
|
"label": "Sketch1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"selector": "input[aria-label=\"Feature Length\"]",
|
||||||
|
"value": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "02-pad-task",
|
||||||
|
"selector": "fieldset:has-text(\"创建 Pad\")"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "click",
|
||||||
|
"role": "button",
|
||||||
|
"name": "创建 Pad",
|
||||||
|
"exact": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"ms": 2800
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shot",
|
||||||
|
"name": "03-pad-result",
|
||||||
|
"selector": "canvas"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "assertAnyText",
|
||||||
|
"selector": "body",
|
||||||
|
"contains": "Pad"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
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\")"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
71
web/package.json
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"name": "freecad-1-2-web",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.1.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"format:coverage": "node ../tools/run_p6_format_coverage_gate.mjs",
|
||||||
|
"full-parity:gate": "python3 ../tools/run_full_parity_gate.py",
|
||||||
|
"material:tier1-gate": "node ../tools/run_p6_material_python_family_gate.mjs",
|
||||||
|
"sync-show-python-family-fixture": "node ../tools/sync_show_python_family_fixture.mjs",
|
||||||
|
"sync-api-index": "python3 ../tools/generate_python_api_runtime_index.py",
|
||||||
|
"sync-object-index": "python3 ../tools/generate_object_runtime_index.py",
|
||||||
|
"sync-format-index": "python3 ../tools/generate_format_runtime_index.py",
|
||||||
|
"sync-module-registry": "python3 ../tools/generate_web_module_registry.py",
|
||||||
|
"sync-release-manifest": "python3 ../tools/generate_web_release_manifest.py",
|
||||||
|
"sync-part-tier2-adapter": "python3 ../tools/generate_part_tier2_adapter_manifest.py",
|
||||||
|
"sync-partdesign-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py PartDesign tier-2-pure --output docs/p6/partdesign-tier2-adapter-manifest.json",
|
||||||
|
"sync-sketcher-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Sketcher tier-2-pure --output docs/p6/sketcher-tier2-adapter-manifest.json",
|
||||||
|
"sync-techdraw-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py TechDraw tier-2-pure --output docs/p6/techdraw-tier2-adapter-manifest.json",
|
||||||
|
"sync-import-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Import tier-2-pure --output docs/p6/import-tier2-adapter-manifest.json",
|
||||||
|
"sync-mesh-tier2-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Mesh tier-2-pure --output docs/p6/mesh-tier2-adapter-manifest.json",
|
||||||
|
"sync-material-tier1-adapter": "python3 ../tools/generate_python_family_adapter_manifest.py Material tier-1-readonly --output docs/p6/material-tier1-readonly-adapter-manifest.json",
|
||||||
|
"sync-tier2-remainder": "python3 ../tools/generate_remaining_tier2_adapter_manifests.py",
|
||||||
|
"sync-tier3-stateful": "python3 ../tools/generate_tier3_stateful_adapter_manifest.py",
|
||||||
|
"sync-viewprovider-index": "python3 ../tools/generate_viewprovider_runtime_index.py",
|
||||||
|
"sync-property-index": "python3 ../tools/generate_property_runtime_index.py",
|
||||||
|
"sync-geometry-index": "python3 ../tools/generate_geometry_runtime_index.py",
|
||||||
|
"sync-document-graph-index": "python3 ../tools/generate_document_graph_runtime_index.py",
|
||||||
|
"sync-capability-index": "python3 ../tools/generate_capability_runtime_index.py",
|
||||||
|
"sync-tier1-readonly": "python3 ../tools/generate_tier1_readonly_adapter_manifest.py",
|
||||||
|
"sync-tier4-restricted": "python3 ../tools/generate_tier4_restricted_manifest.py",
|
||||||
|
"sync-api-adapter-fill": "python3 ../tools/generate_api_adapter_fill_manifest.py",
|
||||||
|
"sync-format-extensions": "python3 ../tools/generate_format_extension_manifest.py",
|
||||||
|
"sync-kernel": "node tools/sync-assets.mjs",
|
||||||
|
"build:wasm-modules": "python3 ../tools/build_web_module_artifacts.py",
|
||||||
|
"sync:wasm-manifest": "node tools/sync-assets.mjs",
|
||||||
|
"check:geometry-boundary": "node tools/audit-geometry-boundary.mjs",
|
||||||
|
"resume:official": "node ../tools/auto-resume-official-case.mjs --json",
|
||||||
|
"checkpoint:official": "node ../tools/official-case-checkpoint.mjs",
|
||||||
|
"check:official-continuation": "node ../tools/auto-resume-official-case.mjs --json && node ../tools/check-official-case-continuation.mjs --json",
|
||||||
|
"manual:features": "node tools/manual/generate-features.mjs",
|
||||||
|
"build:manual": "node tools/manual/build-manual.mjs",
|
||||||
|
"check:manual": "node tools/manual/check-page.mjs",
|
||||||
|
"prebuild": "npm run sync-show-python-family-fixture && npm run check:geometry-boundary",
|
||||||
|
"dev": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && vite --host 0.0.0.0",
|
||||||
|
"build": "npm run sync-api-index && npm run sync-object-index && npm run sync-format-index && npm run sync-module-registry && npm run sync-part-tier2-adapter && npm run sync-partdesign-tier2-adapter && npm run sync-sketcher-tier2-adapter && npm run sync-techdraw-tier2-adapter && npm run sync-import-tier2-adapter && npm run sync-mesh-tier2-adapter && npm run sync-material-tier1-adapter && npm run sync-tier2-remainder && npm run sync-tier3-stateful && npm run sync-viewprovider-index && npm run sync-property-index && npm run sync-geometry-index && npm run sync-document-graph-index && npm run sync-capability-index && npm run sync-tier1-readonly && npm run sync-tier4-restricted && npm run sync-api-adapter-fill && npm run sync-format-extensions && npm run sync-kernel && npm run sync-release-manifest && tsc --noEmit && vite build",
|
||||||
|
"preview": "vite preview --host 0.0.0.0",
|
||||||
|
"build-and-publish": "node tools/build-and-publish.mjs"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/react": "^18.3.12",
|
||||||
|
"@types/react-dom": "^18.3.1",
|
||||||
|
"lucide": "1.32.0",
|
||||||
|
"marked": "15.0.12",
|
||||||
|
"react": "^18.3.1",
|
||||||
|
"react-arborist": "^4.0.1",
|
||||||
|
"react-dnd": "^16.0.1",
|
||||||
|
"react-dnd-html5-backend": "^16.0.1",
|
||||||
|
"react-dom": "^18.3.1",
|
||||||
|
"react-window": "^1.8.11",
|
||||||
|
"redux": "^5.0.1",
|
||||||
|
"three": "0.185.1",
|
||||||
|
"ws": "^8.22.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/three": "0.185.0",
|
||||||
|
"playwright": "^1.64.1",
|
||||||
|
"typescript": "5.9.3",
|
||||||
|
"vite": "8.2.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
302
web/public/line/models.json
Normal file
@@ -0,0 +1,302 @@
|
|||||||
|
{
|
||||||
|
"schema": "freecad-web-line-course/reference-models/v1",
|
||||||
|
"models": [
|
||||||
|
{
|
||||||
|
"file": "ABB_IRB_120.glb",
|
||||||
|
"name": "ABB_IRB_120",
|
||||||
|
"label": "ABB IRB 120 机器人",
|
||||||
|
"dims": [
|
||||||
|
219.36,
|
||||||
|
687.567,
|
||||||
|
699.587
|
||||||
|
],
|
||||||
|
"parts": 11
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "Tool.glb",
|
||||||
|
"name": "ToolFrame",
|
||||||
|
"label": "工具坐标系",
|
||||||
|
"dims": [
|
||||||
|
72.244,
|
||||||
|
72.244,
|
||||||
|
72.244
|
||||||
|
],
|
||||||
|
"parts": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "三柜子.glb",
|
||||||
|
"name": "CabinetA",
|
||||||
|
"label": "主控制柜",
|
||||||
|
"dims": [
|
||||||
|
1499.932,
|
||||||
|
744.225,
|
||||||
|
754
|
||||||
|
],
|
||||||
|
"parts": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "三柜子1.glb",
|
||||||
|
"name": "CabinetB",
|
||||||
|
"label": "长控制柜",
|
||||||
|
"dims": [
|
||||||
|
2969.994,
|
||||||
|
774.283,
|
||||||
|
774.001
|
||||||
|
],
|
||||||
|
"parts": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "三色灯.glb",
|
||||||
|
"name": "StackLight",
|
||||||
|
"label": "三色警示灯",
|
||||||
|
"dims": [
|
||||||
|
50,
|
||||||
|
40,
|
||||||
|
468
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "上料.glb",
|
||||||
|
"name": "Loader",
|
||||||
|
"label": "上料机构",
|
||||||
|
"dims": [
|
||||||
|
374.932,
|
||||||
|
140,
|
||||||
|
212
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "传送带送料装置.glb",
|
||||||
|
"name": "ConveyorFeeder",
|
||||||
|
"label": "传送带送料装置",
|
||||||
|
"dims": [
|
||||||
|
613.967,
|
||||||
|
270.043,
|
||||||
|
204.607
|
||||||
|
],
|
||||||
|
"parts": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "原料上料.glb",
|
||||||
|
"name": "RawFeeder",
|
||||||
|
"label": "原料上料装置",
|
||||||
|
"dims": [
|
||||||
|
210,
|
||||||
|
208,
|
||||||
|
204.1
|
||||||
|
],
|
||||||
|
"parts": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "原料装配.glb",
|
||||||
|
"name": "RawAssembly",
|
||||||
|
"label": "原料装配平台",
|
||||||
|
"dims": [
|
||||||
|
498.3,
|
||||||
|
144.929,
|
||||||
|
338.125
|
||||||
|
],
|
||||||
|
"parts": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "原点.glb",
|
||||||
|
"name": "OriginMarker",
|
||||||
|
"label": "原点标记",
|
||||||
|
"dims": [
|
||||||
|
141.682,
|
||||||
|
141.682,
|
||||||
|
141.682
|
||||||
|
],
|
||||||
|
"parts": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "地面平面.glb",
|
||||||
|
"name": "GroundPlane",
|
||||||
|
"label": "地面与地线",
|
||||||
|
"dims": [
|
||||||
|
4867.482,
|
||||||
|
3673.23,
|
||||||
|
310.061
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "夹取送料装置.glb",
|
||||||
|
"name": "PickFeeder",
|
||||||
|
"label": "夹取送料装置",
|
||||||
|
"dims": [
|
||||||
|
1026,
|
||||||
|
277.257,
|
||||||
|
455.018
|
||||||
|
],
|
||||||
|
"parts": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "平面.001.glb",
|
||||||
|
"name": "Plane001",
|
||||||
|
"label": "地面平面 001",
|
||||||
|
"dims": [
|
||||||
|
4867.482,
|
||||||
|
3673.23,
|
||||||
|
310.061
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "平面.glb",
|
||||||
|
"name": "Plane",
|
||||||
|
"label": "地面平面",
|
||||||
|
"dims": [
|
||||||
|
4867.482,
|
||||||
|
3673.23,
|
||||||
|
310.061
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "推料装置.glb",
|
||||||
|
"name": "Pusher",
|
||||||
|
"label": "推料装置",
|
||||||
|
"dims": [
|
||||||
|
490,
|
||||||
|
336,
|
||||||
|
587.8
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "料仓.glb",
|
||||||
|
"name": "Hopper",
|
||||||
|
"label": "料仓",
|
||||||
|
"dims": [
|
||||||
|
280,
|
||||||
|
250,
|
||||||
|
200
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "新版2.glb",
|
||||||
|
"name": "SensorBlock",
|
||||||
|
"label": "新版检测块",
|
||||||
|
"dims": [
|
||||||
|
21.992,
|
||||||
|
21.967,
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"parts": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "旋转运送装置.glb",
|
||||||
|
"name": "RotaryTransfer",
|
||||||
|
"label": "旋转运送装置",
|
||||||
|
"dims": [
|
||||||
|
536.869,
|
||||||
|
536.268,
|
||||||
|
202
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "显示屏.glb",
|
||||||
|
"name": "DisplayA",
|
||||||
|
"label": "显示屏 A",
|
||||||
|
"dims": [
|
||||||
|
249,
|
||||||
|
161.2,
|
||||||
|
312
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "显示屏1.glb",
|
||||||
|
"name": "DisplayB",
|
||||||
|
"label": "显示屏 B",
|
||||||
|
"dims": [
|
||||||
|
249,
|
||||||
|
161.2,
|
||||||
|
312
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "柜门.glb",
|
||||||
|
"name": "CabinetDoor",
|
||||||
|
"label": "柜门",
|
||||||
|
"dims": [
|
||||||
|
30,
|
||||||
|
560,
|
||||||
|
560
|
||||||
|
],
|
||||||
|
"parts": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "检测台.glb",
|
||||||
|
"name": "InspectionTable",
|
||||||
|
"label": "检测台",
|
||||||
|
"dims": [
|
||||||
|
75,
|
||||||
|
148.486,
|
||||||
|
325
|
||||||
|
],
|
||||||
|
"parts": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "物料存储区.glb",
|
||||||
|
"name": "MaterialStore",
|
||||||
|
"label": "物料存储区",
|
||||||
|
"dims": [
|
||||||
|
351.815,
|
||||||
|
82.979,
|
||||||
|
412.75
|
||||||
|
],
|
||||||
|
"parts": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "称重平台.glb",
|
||||||
|
"name": "WeighPlatform",
|
||||||
|
"label": "称重平台",
|
||||||
|
"dims": [
|
||||||
|
200,
|
||||||
|
199.316,
|
||||||
|
175
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "辅助夹爪.glb",
|
||||||
|
"name": "AuxGripper",
|
||||||
|
"label": "辅助夹爪",
|
||||||
|
"dims": [
|
||||||
|
73.312,
|
||||||
|
94.272,
|
||||||
|
102.394
|
||||||
|
],
|
||||||
|
"parts": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "运送支架.glb",
|
||||||
|
"name": "TransportBracket",
|
||||||
|
"label": "运送支架",
|
||||||
|
"dims": [
|
||||||
|
60,
|
||||||
|
113.5,
|
||||||
|
310
|
||||||
|
],
|
||||||
|
"parts": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "运送检测装置.glb",
|
||||||
|
"name": "TransportInspector",
|
||||||
|
"label": "运送检测装置",
|
||||||
|
"dims": [
|
||||||
|
75,
|
||||||
|
148.486,
|
||||||
|
325
|
||||||
|
],
|
||||||
|
"parts": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
156
web/src/delta-reference-panel.tsx
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
import * as THREE from "three";
|
||||||
|
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
|
||||||
|
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
||||||
|
|
||||||
|
// Three.js reference viewer for GLB models. The OCCT build used by the Web
|
||||||
|
// kernel is configured with USE_RAPIDJSON=OFF, so RWGltf cannot read/write
|
||||||
|
// glTF; this React panel provides the reference view without touching the
|
||||||
|
// kernel. It supports Y-up (DELTA) and Z-up (production-line) GLBs.
|
||||||
|
export type GlbReferenceModel = { file: string; label: string; name?: string; dims?: number[] };
|
||||||
|
|
||||||
|
export function GlbReferencePanel({
|
||||||
|
src, title = "参考模型", upAxis = "y", ariaLabel = "GLB reference viewer",
|
||||||
|
modelsUrl, onClose,
|
||||||
|
}: {
|
||||||
|
src?: string;
|
||||||
|
title?: string;
|
||||||
|
upAxis?: "y" | "z";
|
||||||
|
ariaLabel?: string;
|
||||||
|
modelsUrl?: string;
|
||||||
|
onClose: () => void;
|
||||||
|
}) {
|
||||||
|
const host = useRef<HTMLDivElement>(null);
|
||||||
|
const [info, setInfo] = useState("加载参考模型…");
|
||||||
|
const [error, setError] = useState("");
|
||||||
|
const [models, setModels] = useState<GlbReferenceModel[]>([]);
|
||||||
|
const [selected, setSelected] = useState(src ?? "");
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!modelsUrl) return;
|
||||||
|
let cancelled = false;
|
||||||
|
fetch(modelsUrl).then(response => response.json()).then(payload => {
|
||||||
|
if (cancelled) return;
|
||||||
|
const list: GlbReferenceModel[] = payload.models ?? [];
|
||||||
|
setModels(list);
|
||||||
|
setSelected(current => current || (list[0] ? `/line-glb/${encodeURIComponent(list[0].file)}` : ""));
|
||||||
|
}).catch(loadError => { if (!cancelled) setError(String(loadError?.message ?? loadError)); });
|
||||||
|
return () => { cancelled = true; };
|
||||||
|
}, [modelsUrl]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const container = host.current;
|
||||||
|
const effectiveSrc = selected || src;
|
||||||
|
if (!container || !effectiveSrc) return;
|
||||||
|
let disposed = false;
|
||||||
|
const scene = new THREE.Scene();
|
||||||
|
scene.background = new THREE.Color(0x0f1419);
|
||||||
|
const camera = new THREE.PerspectiveCamera(42, 1, 0.01, 100000);
|
||||||
|
camera.up.set(0, upAxis === "z" ? 0 : 1, upAxis === "z" ? 1 : 0);
|
||||||
|
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: false });
|
||||||
|
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
|
||||||
|
container.appendChild(renderer.domElement);
|
||||||
|
renderer.domElement.style.width = "100%";
|
||||||
|
renderer.domElement.style.height = "100%";
|
||||||
|
renderer.domElement.style.display = "block";
|
||||||
|
scene.add(new THREE.HemisphereLight(0xffffff, 0x334455, 2.2));
|
||||||
|
const key = new THREE.DirectionalLight(0xffffff, 2.2);
|
||||||
|
key.position.set(2, 4, 3); scene.add(key);
|
||||||
|
const fill = new THREE.DirectionalLight(0xffffff, 0.9);
|
||||||
|
fill.position.set(-3, 1, -2); scene.add(fill);
|
||||||
|
const controls = new OrbitControls(camera, renderer.domElement);
|
||||||
|
controls.enableDamping = true; controls.dampingFactor = 0.08;
|
||||||
|
|
||||||
|
const resize = () => {
|
||||||
|
const width = container.clientWidth || 430;
|
||||||
|
const height = container.clientHeight || 260;
|
||||||
|
renderer.setSize(width, height, false);
|
||||||
|
camera.aspect = width / height;
|
||||||
|
camera.updateProjectionMatrix();
|
||||||
|
};
|
||||||
|
resize();
|
||||||
|
const observer = new ResizeObserver(resize);
|
||||||
|
observer.observe(container);
|
||||||
|
setError("");
|
||||||
|
setInfo("加载参考模型…");
|
||||||
|
|
||||||
|
new GLTFLoader().load(effectiveSrc, gltf => {
|
||||||
|
if (disposed) return;
|
||||||
|
const root = gltf.scene;
|
||||||
|
scene.add(root);
|
||||||
|
const box = new THREE.Box3().setFromObject(root);
|
||||||
|
const size = box.getSize(new THREE.Vector3());
|
||||||
|
const center = box.getCenter(new THREE.Vector3());
|
||||||
|
root.position.sub(center);
|
||||||
|
const maxSize = Math.max(size.x, size.y, size.z) || 1;
|
||||||
|
camera.position.set(maxSize * 1.15, maxSize * 1.25, maxSize * 1.45);
|
||||||
|
if (upAxis === "z") camera.position.set(maxSize * 1.15, -maxSize * 1.45, maxSize * 1.05);
|
||||||
|
camera.near = maxSize / 200; camera.far = maxSize * 30;
|
||||||
|
camera.updateProjectionMatrix();
|
||||||
|
controls.target.set(0, 0, 0); controls.update();
|
||||||
|
let meshes = 0;
|
||||||
|
root.traverse(child => { if ((child as THREE.Mesh).isMesh) meshes++; });
|
||||||
|
setInfo(`${meshes} 个网格 · 包围盒 ${size.x.toFixed(2)} × ${size.y.toFixed(2)} × ${size.z.toFixed(2)} m`);
|
||||||
|
}, undefined, loadError => {
|
||||||
|
if (!disposed) setError(String((loadError as Error | undefined)?.message ?? loadError));
|
||||||
|
});
|
||||||
|
|
||||||
|
let frame = 0;
|
||||||
|
const animate = () => {
|
||||||
|
frame = requestAnimationFrame(animate);
|
||||||
|
controls.update();
|
||||||
|
renderer.render(scene, camera);
|
||||||
|
};
|
||||||
|
animate();
|
||||||
|
return () => {
|
||||||
|
disposed = true;
|
||||||
|
cancelAnimationFrame(frame);
|
||||||
|
observer.disconnect();
|
||||||
|
controls.dispose();
|
||||||
|
scene.traverse(child => {
|
||||||
|
const mesh = child as THREE.Mesh;
|
||||||
|
if (!mesh.isMesh) return;
|
||||||
|
mesh.geometry?.dispose();
|
||||||
|
const materials = Array.isArray(mesh.material) ? mesh.material : [mesh.material];
|
||||||
|
for (const material of materials) {
|
||||||
|
const map = (material as THREE.MeshStandardMaterial | undefined)?.map;
|
||||||
|
map?.dispose();
|
||||||
|
material?.dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
renderer.dispose();
|
||||||
|
if (renderer.domElement.parentElement === container) container.removeChild(renderer.domElement);
|
||||||
|
};
|
||||||
|
}, [selected, src, upAxis]);
|
||||||
|
|
||||||
|
return <aside aria-label={ariaLabel} style={{
|
||||||
|
position: "fixed", right: 16, bottom: 48, width: 430, maxWidth: "calc(100vw - 24px)",
|
||||||
|
background: "#0f1419", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 8,
|
||||||
|
boxShadow: "0 12px 32px #0008", zIndex: 60, display: "flex", flexDirection: "column", overflow: "hidden",
|
||||||
|
}}>
|
||||||
|
<header style={{ display: "flex", alignItems: "center", gap: 8, padding: "6px 10px", borderBottom: "1px solid #2a3a45" }}>
|
||||||
|
<strong style={{ fontSize: 13 }}>{title}</strong>
|
||||||
|
{models.length > 0 && <select aria-label="Reference model" value={selected}
|
||||||
|
onChange={event => setSelected(event.target.value)}
|
||||||
|
style={{ maxWidth: 190, background: "#0b1014", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 4 }}>
|
||||||
|
{models.map(model => <option key={model.file} value={`/line-glb/${encodeURIComponent(model.file)}`}>
|
||||||
|
{model.label}</option>)}
|
||||||
|
</select>}
|
||||||
|
<button type="button" aria-label="Close reference viewer" onClick={onClose} style={{ marginLeft: "auto", background: "transparent", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 4, cursor: "pointer" }}>关闭</button>
|
||||||
|
</header>
|
||||||
|
<div ref={host} style={{ height: 260 }} />
|
||||||
|
<footer style={{ padding: "4px 10px 8px", fontSize: 11, color: "#93a6b3" }}>
|
||||||
|
{error ? `加载失败:${error}` : info}
|
||||||
|
</footer>
|
||||||
|
</aside>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function DeltaReferencePanel({ onClose }: { onClose: () => void }) {
|
||||||
|
return <GlbReferencePanel src="/delta/DELTA-OK01.glb" title="参考模型 DELTA-OK01.glb"
|
||||||
|
upAxis="y" ariaLabel="Delta reference viewer" onClose={onClose} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function LineReferencePanel({ onClose }: { onClose: () => void }) {
|
||||||
|
return <GlbReferencePanel modelsUrl="/line/models.json" title="产线参考模型"
|
||||||
|
upAxis="z" ariaLabel="Line reference viewer" onClose={onClose} />;
|
||||||
|
}
|
||||||