Files
FreeCADWasmDev/web/manual/content/ch09-bim.md
wangdequan 300c8efb01 docs(web): full UI surface inventory, illustrated manual, panel screenshots
Interface design document and manual now share one authoritative surface
inventory (333 surfaces across 9 categories, gap 0), and every chapter carries
real Playwright screenshots of the panels it documents.

- tools/fcweb: ui-surface-scan/ui-surface-inventory (deterministic --check),
  build-ui-doc renders panel catalog, workbench matrix and mapping tables;
  blank toolbar crops (<1 KB) are skipped and pruned instead of embedded
- web/tools/manual: generate-panel-index (ch16), audit-ui-gaps,
  generate-final-status, generate-gaps-doc; pager is per-chapter so the manual
  no longer overflows horizontally
- manual: 130 screenshot references / 128 PNGs, panel sections for ch02-ch13
- web/src: utility menus stop click propagation (menu reopened on item click);
  workbench shell gains an OPFS document picker so workbench.html can bind a
  real document instead of the fixed workbench-document id; Sketcher panel
  moves from the command column to the main stage

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 01:30:31 +08:00

8.9 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. 有没有已通过的官方案例(附录命令索引里查)。

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

BIM 面板与 IFC 工作流

BIM 是 Web 端界面表面最多的工作台:18 个任务面板、7 组菜单、8 组工具栏。按用途分成四类:

类别 面板 用途
起步 BIM Welcome、BIM Tutorial 欢迎页与分步教程,第一次进入 BIM 时使用
结构 Axis and material、结构元素面板、Doors and Windows 轴网、材料、墙柱门窗的参数编辑
组织 Objects Library、Reorder children、Views Manager 构件库、层级排序、视图管理
IFC IFC、IfcOpenShell Update、IFC Elements / IFC Explorer IFC 导入导出与 IfcOpenShell 数据刷新

其余面板(Image Plane、Drawing view、Text、克隆与分组等)在需要时从菜单打开,行为与桌面 BIM 工作台一致。IFC 相关面板依赖内核侧 IfcOpenShell 扩展;刷新失败时先看 Bottom dock 的 Report view 输出,再确认构件是否带有合法的 IFC 类型。

完整 33 项表面(面板 + 菜单 + 工具栏)见第 16 章。

面板实拍与真实状态

Views Manager:面板本身只有 Show manager 一个按钮,点开后是「面板布局」对话框。右侧 BIM COMMANDS 清单逐条标注命令状态, 本例每个命令后面都写着 boundary · no worker;中间的「统一命令结果」给出 Document: workbench-document · plugins none、 Worker: bim.workers、BIM GUI sources: 176 desktop · 32 Web · 0 task panels · 0 resources, 并对 BIM_Views 注明「仅注册、无菜单或工具栏落点(src/Mod/BIM/bimcommands/BimViews.py:794)」。左下角状态栏是 restricted: command is not runnable:

Views Manager 与统一命令结果:命令状态 boundary · no worker,BIM_Views 仅注册

这张图是本章最重要的证据:BIM 在 Web 端能打开面板、能读命令清单,但构件创建类命令没有 worker,执行会被拒绝。 把它当成「查状态」的工具,而不是建模入口。

Objects Library:Library file 从本地选库(Choose File,未选时显示 No file chosen), Saved file 下拉列出 OPFS 里的文档,X/Y/Z 给插入位置,右侧 Insert / Cancel 提交或取消:

Objects Library:Library file / Saved file 下拉与 X Y Z 插入位置

BIM preferences:Read current preferences 之后,各行显示 Unchanged——说明本页只回读当前值、没有可写字段; Preset、Unit system、Working plane、Dimension style、Document license type 以及背景色、网格、文字高度等都在这一页:

BIM preferences:Read current preferences 后各项显示 Unchanged

BIM Material:Label、Search materials、Material(New material 下拉)、Material data(JSON 文本域,初始为 {})、 Merge destination,底部 Create / Apply edits / Assign to selection / Duplicate / Delete / Merge / Delete unused / Merge duplicates / Cancel。 面板顶部有 Refresh document 按钮:

BIM Material:Label、Material 下拉、Material data JSON 与底部九个操作按钮

IfcExplorer:Open IFC(Choose File)+ Back,中间 Mesh preview 与 Insert selected product,右侧 Cancel 与 Close (discard pending edits)。 预览与插入依赖内核 IfcOpenShell;选择文件之前 Insert selected product 不可用,这是正常的前置状态:

IfcExplorer:Open IFC、Mesh preview、Insert selected product 与 Close

实测缺口:BIM_Wall 不渲染任何任务面板(打开后为空面板),所以本章用 IfcExplorer 作为第二个面板实例; 本页五张图分别对应 BIM_Views、BIM_Library、BIM_Setup、BIM_Material、BIM_IfcExplorer,全部截图都在真实 OPFS 文档上下文里采集 (BIM_Library 的 Saved file 下拉条目是真实 OPFS 文件,不是伪造选项)。

边界与注意

  • 门窗、屋顶、框架这类依赖宿主选中的命令,在只有单命令探针页时无法完整操作。
  • 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,数出标为边界的命令有多少条。