Arch: More info if IfcOpenShell is not installed
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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="")
|
||||
|
||||
Reference in New Issue
Block a user