BIM: Fixed imports of IfcOpenShell 0.8 - fixes #17628

This commit is contained in:
Yorik van Havre
2024-11-05 12:57:49 +01:00
committed by Yorik van Havre
parent 04eb73bea4
commit 928deccec7
2 changed files with 2 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ def export(exportList, filename, colors=None, preferences=None):
"Visit https://wiki.freecad.org/IfcOpenShell "
"to learn about installing it.")
return
from ifcopenshell import guid
if str(filename).lower().endswith("json"):
import json
try:

View File

@@ -25,6 +25,7 @@ import math
import FreeCAD
# import Draft
import ifcopenshell
from ifcopenshell import guid
from draftutils import params
def getObjectsOfIfcType(objects, ifcType):