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
This commit is contained in:
Furgo
2025-04-07 17:49:26 +02:00
committed by GitHub
parent dde69282e0
commit 35b433e566

View File

@@ -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")