From 35b433e56636b3a82b0f4b9a6742f604788dbebb Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:49:26 +0200 Subject: [PATCH] BIM: add missing ifc_tools import (#20368) * BIM: add module-level import for ifc_tools * Do not load ifc_tools at the start of module to avoid breaking tests --- src/Mod/BIM/bimcommands/BimProjectManager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/BIM/bimcommands/BimProjectManager.py b/src/Mod/BIM/bimcommands/BimProjectManager.py index a22e349a8d..93c0296850 100644 --- a/src/Mod/BIM/bimcommands/BimProjectManager.py +++ b/src/Mod/BIM/bimcommands/BimProjectManager.py @@ -124,6 +124,7 @@ class BIM_ProjectManager: if not buildings: buildings = [o for o in doc.Objects if getattr(o, "IfcType", "") == "Building"] if buildings: + from nativeifc import ifc_tools self.building = buildings[0] self.form.buildingName.setText(self.building.Label) levels = ifc_tools.get_children(self.building, ifctype="IfcBuildingStorey")