BIM: cleanup imports in nativeifc

This commit is contained in:
marcuspollio
2025-03-23 23:30:55 +01:00
parent c146d58b57
commit c327bc4fe0
18 changed files with 66 additions and 54 deletions

View File

@@ -22,7 +22,6 @@
"""This NativeIFC module handles the retrieval and display of geometry compositions of objects"""
import FreeCAD
TAB = 2
@@ -80,7 +79,7 @@ def show_geometry_tree(element):
import Arch_rc
import FreeCADGui # lazy import
from . import ifc_tools
from PySide import QtGui, QtWidgets
from PySide import QtWidgets
if isinstance(element, FreeCAD.DocumentObject):
element = ifc_tools.get_ifc_element(element)
@@ -147,7 +146,7 @@ def show_properties(current, previous):
import FreeCADGui
from . import ifc_tools # lazy loading
from PySide import QtCore, QtGui, QtWidgets
from PySide import QtCore, QtWidgets
ifcid = int(current.text(0).split("=", 1)[0].strip(" ").strip("#"))
sel = FreeCADGui.Selection.getSelection()