mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +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:
|
try:
|
||||||
new_element = ifc_file.create_entity(new_class)
|
new_element = ifc_file.create_entity(new_class)
|
||||||
except:
|
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)]
|
new_attributes = [new_element.attribute_name(i) for i, attribute in enumerate(new_element)]
|
||||||
for i, attribute in enumerate(element):
|
for i, attribute in enumerate(element):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user