Files
FreeCADWasmDev/web/manual/content/ch09-bim.md
wangdequan 7d9cf3a5ea Rewrite the beginner manual against measured Web behaviour
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>
2026-11-15 16:47:14 +08:00

4.8 KiB
Raw Blame History

id, order, title, level
id order title level
ch09 9 BIM 建筑信息模型 specialist

第 9 章 BIM 建筑信息模型

能力概览

BIM 把建筑构件组织成“场地 → 建筑 → 楼层 → 构件”的层级,并支持 IFC 数据交换。 与机械建模不同,构件之间存在宿主关系:门窗挂在墙上,墙挂在楼层上。

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

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

9.1 建筑项目工作流(桌面版标准顺序)

先说结论:下面这条链路的每一步在 Web 端都没有任务面板,只能读参数不能落成构件。 实测可用的 BIM 命令只有四类:BIM_Library(对象库浏览)、BIM_Setup(偏好设置)、 BIM_Material(材料指派)、BIM_Views(视图)。它们都不创建构件。

BIM_Setup 的面板列出 BIM 偏好项,Read current preferences 会把当前值读进表单:

BIM_Setup:BIM preferences 面板,Read current preferences 之后

读出来的值:

点 Read current preferences 后的偏好值

BIM_Material 面板用于给选中对象指派材料,底部是 Assign to selection:

BIM_Material:材料列表与 Assign to selection

BIM_Library 打开对象库,可以浏览可用的标准构件:

BIM_Library:Objects Library 面板

桌面版的标准顺序如下。顺序不能颠倒,因为每一步都要挂到上一步的宿主上:

  1. 新建文档,创建 Arch_Site(场地)。
  2. 在场地里创建 Arch_Building。
  3. 在建筑里创建 Arch_Floor(楼层)。
  4. 在楼层内画墙 Arch_Wall,设置长度、高度、厚度、对齐方式。
  5. 加门窗 Arch_Window / Arch_Door,必须选择宿主墙,否则门窗没有定位基准。
  6. 加楼板、柱、梁:BIM_Slab、BIM_Column、BIM_Beam。
  7. 用 BIM_IfcExplorer 查看 IFC 结构,需要时导出 IFC。

没有楼层就直接建墙,墙会成为游离对象,后续改楼层高度时它不会跟着动。

9.2 轴网与参数驱动

  • Arch_Axis 建立轴网,墙可以对轴线对齐,改轴距时墙跟着移动。
  • 尺寸标注用 Draft_Dimension,出图时交给第 11 章 TechDraw。
  • 推荐做法:楼层高度、墙厚、门窗尺寸都用 Spreadsheet 参数表驱动(第 6 章)。 把 2.8 m 改成 3.2 m 时,所有引用该单元格的墙一起更新,不用逐个改。

9.3 当前 Web 边界

BIM 模块页里有相当多命令显示 boundary · no worker,表示对应的桌面 GUI 命令 还没有完整的 Web 执行通道。

判断某个构件能不能用,看三件事(下面的按钮实测只会返回 restricted: command is not runnable 或 native_command_failed):

  1. 模块页上该命令是否标 boundary。
  2. 项目页工作台下拉里能否切到 Architecture。
  3. 有没有已通过的官方案例(附录命令索引里查)。

在附录里被标为边界的命令,本手册一律不写成“可用”。

边界与注意

  • 门窗、屋顶、框架这类依赖宿主选中的命令,在只有单命令探针页时无法完整操作。
  • IFC 导入前先确认单位,单位错会让整栋楼差一千倍。
  • BIM 与 Part/PartDesign 在同一个文档里混用会涉及所有权移交;教程建议分开文档。

自检

  • 能按 Site → Building → Floor 的顺序建出层级。
  • 能创建一面墙并修改高度与厚度。
  • 能把门窗挂到指定墙上。
  • 能打开 IFC Explorer 并读出构件类型。
  • 能解释 boundary 标记的含义。

常见错误

  1. 没有楼层就建墙,构件游离在层级之外。
  2. 门窗没选宿主墙,创建成功但位置无从确定。
  3. 把标为 boundary 的命令当已实现功能写进交付清单。
  4. 导入 IFC 时没注意单位,尺寸整体差一千倍。
  5. 在一个文档里同时用 BIM 和 PartDesign,所有权混乱导致对象不可编辑。

练习

  1. 建一个 6×4 m 的房间:四面墙 + 楼板 + 一扇门。
  2. 用参数表把墙高从 2.8 改到 3.2 m,观察是否所有墙一起更新。
  3. 打开 IFC Explorer,记录墙、门、楼板各自的 IFC 类型名。
  4. 在附录命令索引里筛 BIM,数出标为边界的命令有多少条。