From 56aba4c9d9dcff2b76dce55ec40f59517c47ff86 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 18 Dec 2018 11:00:56 -0200 Subject: [PATCH] Arch: Allow to not zoom fit after importing IFC files --- src/Mod/Arch/importIFC.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 910fb7236a..a79bea0efa 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -38,6 +38,7 @@ from DraftGeomUtils import vec DEBUG = False # Set to True to see debug messages. Otherwise, totally silent ADDDEFAULTSTOREY = False # If True, an exported file will ALWAYS have at least one storey +ZOOMOUT = True # Set to False to not zoom extents after import if open.__module__ in ['__builtin__','io']: pyopen = open # because we'll redefine open below @@ -1319,7 +1320,7 @@ def insert(filename,docname,skip=[],only=[],root=None): FreeCAD.ActiveDocument.recompute() - if FreeCAD.GuiUp: + if ZOOMOUT and FreeCAD.GuiUp: import FreeCADGui FreeCADGui.SendMsgToActiveView("ViewFit") print("Finished importing.")