Arch: More info if IfcOpenShell is not installed

This commit is contained in:
Yorik van Havre
2019-09-06 17:45:15 -03:00
parent 3fe1ee1f69
commit afed92ba8e
2 changed files with 2 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ def export(exportList,filename,colors=None,preferences=None):
import ifcopenshell
except:
FreeCAD.Console.PrintError("IfcOpenShell was not found on this system. IFC support is disabled\n")
FreeCAD.Console.PrintMessage("Visit https://www.freecadweb.org/wiki/Arch_IFC to learn how to install it\n")
return
version = FreeCAD.Version()

View File

@@ -204,6 +204,7 @@ def insert(filename,docname,skip=[],only=[],root=None,preferences=None):
import ifcopenshell
except:
FreeCAD.Console.PrintError("IfcOpenShell was not found on this system. IFC support is disabled\n")
FreeCAD.Console.PrintMessage("Visit https://www.freecadweb.org/wiki/Arch_IFC to learn how to install it\n")
return
if preferences['DEBUG']: print("Opening ",filename,"...",end="")