mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
IFCCSV now continues to edit other attributes even if it cannot change a class
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user