mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 23:49:59 +00:00
IFCCSV will now skip GUIDS that it cannot find
This commit is contained in:
@@ -157,8 +157,10 @@ class IfcCsv:
|
|||||||
if not headers:
|
if not headers:
|
||||||
headers = row
|
headers = row
|
||||||
continue
|
continue
|
||||||
element = ifc_file.by_guid(row[0])
|
try:
|
||||||
if not element:
|
element = ifc_file.by_guid(row[0])
|
||||||
|
except:
|
||||||
|
print("The element with GUID {} was not found".format(row[0]))
|
||||||
continue
|
continue
|
||||||
for i, value in enumerate(row):
|
for i, value in enumerate(row):
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user