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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user