The manual claimed 32 modules and taught several workflows that do not run in the web port. Rewrite the chapter bodies and drive every new screenshot from a real interaction with a waitFor before each shot. Screenshots go from 33 to 63. ch06-ch13 grow from one page snapshot each to 3-7 shots taken in headed Chrome, all with empty pageErrors and consoleErrors and every PNG well above the 5 KB bar. Correct the text where the port differs from the desktop: - ch08: Mesh_FromPartShape has no task panel, so the main line becomes Mesh_BuildRegularSolid, which really returns typeId Mesh::Cube. - ch09: no BIM creation command has a panel; only Library, Setup, Material and Views are usable. - ch10: CAM_Job offers only None in its Model select and fails with cam_command_failed. - ch11: the recorded error was Document does not exist; the real one is invalid_request: Select source objects in the current document, and PageDefault cannot create a page at all. - ch12: FEM_Analysis has no panel, so the chain breaks at step one. - ch13: drop every OpenSCAD scene action and screenshot; Robot jog buttons, the Plot canvas and Draft viewport picking do not work, so the chapter documents the panels instead of pretending they run. Rebuild gives 15 chapters, 1575 command rows, 1721 search entries and 945197 bytes; check:manual passes both viewports with no errors, no broken images and no horizontal overflow. The gap ledger goes from 7 to 11 boundaries. Remove b-openscad-recompile, which should not exist while the workbench is removed, and record the five newly measured ones: BIM creation, Mesh_FromPartShape, Draft viewport picking, Robot without a model and Plot without a canvas. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
4.3 KiB
4.3 KiB
id, order, title, level
| id | order | title | level |
|---|---|---|---|
| ch01 | 1 | 界面、文档与视图 | core |
第 1 章 界面、文档与视图
学习目标
- 认清 Web FreeCAD 的五个界面区域,知道每个区域负责什么。
- 新建文档,创建一个实体,并在属性面板里改尺寸、位置与颜色。
- 用鼠标旋转、缩放、平移视口,切到标准视角。
- 把文档保存到 OPFS,并确认保存成功。
1.1 界面分区
界面分五块,按重要性记:
- 应用菜单:File、Edit、View、Part 等,所有命令的起点。
- 工作台选择器:当前显示
Part。切换工作台后,菜单与工具按钮内容随之变化。 - 对象树:列出文档里所有对象,显示标签与内部名称。
- 属性面板:显示选中对象的 View、Placement、Data 与几何统计。
- 三维视口:显示模型。左键拖动旋转,滚轮缩放,右键拖动平移。
布局是可调的:对象树与属性面板之间、属性面板与视口之间都有分隔条,可以拖动改宽度。
1.2 新建文档
打开 File → 新建 Document。新建后对象树是空的,状态栏显示当前活动文档名。
本手册全程使用毫米作为长度单位。属性面板里的 Length / Width / Height
都按毫米填写。填数字前先确认单位,这是最容易犯的错。
1.3 创建第一个对象
打开 Part → Primitives → Box,在任务面板里填:
| 参数 | 值 |
|---|---|
| Length | 60 mm |
| Width | 40 mm |
| Height | 20 mm |
点“应用尺寸并重算”,然后把对象标签改成 ManualCube。
图元创建后,尺寸都在属性面板的 Data 区改;重新点一次 Box 命令只会再建一个新对象, 不会修改已有的那个。
1.4 属性面板与 Placement
选中对象后,属性面板分四组:
- View:Label、Color、Visibility。
- Placement:Position(X / Y / Z)与旋转轴、角度。
- Data:Length、Width、Height 等参数。
- Geometry / Volume / Bounds:面数、三角面数、体积、包围盒。
把 Position 设为 (10, 20, 30),点“应用位置与旋转”。
一个 60 × 40 × 20 的 Box,体积应为 48000 mm³,包围盒 60 × 40 × 20 mm。
这两个数字是后面所有章节的对照基准——数值对不上,说明对象不是你以为的那个。
1.5 视口导航
在视口里:
- 左键拖动:旋转视角。
- 滚轮:缩放。
- 右键拖动:平移。
右上角的视图菜单可以切到等轴测、前视、顶视等标准视角。 调乱了就用等轴测复位,不要把时间花在手动找角度上。
1.6 保存到 OPFS
打开右侧文件工具,点“保存 FCStd 到 OPFS”。状态栏出现
Saved <文件名>.FCStd to OPFS 表示成功。
Web 版默认写 OPFS;只有你点“下载”时文件才落到本地磁盘。 这一步的完整生命周期见第 0.3 节。
自检
- 对象树里只有
ManualCube一个对象。 - Length / Width / Height 分别是 60 / 40 / 20 mm。
- Position 为 (10, 20, 30) mm。
- 体积显示
48000 mm³,包围盒 60 × 40 × 20。 - 视口能旋转、缩放、平移。
- 状态栏显示保存成功。
常见错误
- 把米直接填进毫米输入框,模型小了一千倍。
- 改完尺寸没点“应用尺寸并重算”,对象还是默认的 10 mm。
- 只改了颜色但没触发应用,保存后颜色丢失。
- 保存后没看状态栏,以为文件已经下载到本地。
- 反复点 Box 命令想改尺寸,结果建出一堆对象。
练习
- 把 Box 改成 100 × 50 × 25 mm,记录新的体积与包围盒。
- 再建一个 Cylinder,比较两者在对象树里的命名规则(
Box/Box001)。 - 保存后刷新页面,从 Start 面板重新打开,确认对象与颜色都还在。




