diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index 2a33adde67..9d8a5cd1b3 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -608,7 +608,7 @@ def removeCurves(shape,dae=False,tolerance=5): with faceted segments. If dae is True, DAE triangulation options are used''' import Mesh if dae: - import importDAE + from importers import importDAE t = importDAE.triangulate(shape.cleaned()) else: t = shape.cleaned().tessellate(tolerance) diff --git a/src/Mod/BIM/OfflineRenderingUtils.py b/src/Mod/BIM/OfflineRenderingUtils.py index 31554b5d06..0ca50f9451 100755 --- a/src/Mod/BIM/OfflineRenderingUtils.py +++ b/src/Mod/BIM/OfflineRenderingUtils.py @@ -66,17 +66,17 @@ camera = OfflineRenderingUtils.getCamera(freecadFile) # export to OBJ -import importOBJ +from importers import importOBJ importOBJ.export(doc.Objects,baseFileName+".obj",colors=colors) # export to DAE -import importDAE +from importers import importDAE importDAE.export(doc.Objects,baseFileName+".dae",colors=colors) # export to IFC -import importIFC +from importers import importIFC importIFC.export(doc.Objects,baseFileName+".ifc",colors=colors) # export to STEP diff --git a/src/Mod/BIM/bimcommands/BimIfcExplorer.py b/src/Mod/BIM/bimcommands/BimIfcExplorer.py index 47c5ee976c..fc772f8976 100644 --- a/src/Mod/BIM/bimcommands/BimIfcExplorer.py +++ b/src/Mod/BIM/bimcommands/BimIfcExplorer.py @@ -252,7 +252,7 @@ class BIM_IfcExplorer: def insert(self): "inserts selected objects in the active document" - import importIFC + from importers import importIFC from PySide import QtCore, QtGui doc = FreeCAD.ActiveDocument diff --git a/src/Mod/BIM/bimcommands/BimLibrary.py b/src/Mod/BIM/bimcommands/BimLibrary.py index 05f1fbcd98..ae969bde9e 100644 --- a/src/Mod/BIM/bimcommands/BimLibrary.py +++ b/src/Mod/BIM/bimcommands/BimLibrary.py @@ -588,7 +588,7 @@ class BIM_Library_TaskPanel: todo.delay(self.reject, None) elif ext == ".ifc": - import importIFC + from importers import importIFC importIFC.ZOOMOUT = False importIFC.insert(path, FreeCAD.ActiveDocument.Name)