IFCCSV will now skip GUIDS that it cannot find

This commit is contained in:
Dion Moult
2020-11-14 10:11:36 +11:00
parent 27a8e7c89a
commit ddfe0e0c98
+4 -2
View File
@@ -157,8 +157,10 @@ class IfcCsv:
if not headers:
headers = row
continue
element = ifc_file.by_guid(row[0])
if not element:
try:
element = ifc_file.by_guid(row[0])
except:
print("The element with GUID {} was not found".format(row[0]))
continue
for i, value in enumerate(row):
if i == 0: