IFCCSV now continues to edit other attributes even if it cannot change a class

This commit is contained in:
Dion Moult
2020-11-14 10:07:08 +11:00
parent df3bb0428c
commit 27a8e7c89a
+2 -1
View File
@@ -37,7 +37,8 @@ class IfcAttributeExtractor:
try:
new_element = ifc_file.create_entity(new_class)
except:
return
print(f"Class of {element} could not be changed to {new_class}")
return element
new_attributes = [new_element.attribute_name(i) for i, attribute in enumerate(new_element)]
for i, attribute in enumerate(element):
try: