selector.set_element_value - temporarily skip 'predefined_type'

to avoid issues importing csvs that used it to extract correct predefined type

Example warning:
WARNING. Assigning 'predefined_type' is not yet supported. Skipping value 'ELECTRICACTUATOR' for element: '#89=IfcActuator('1RjCen6XL6WAdhz7HumLFU',$,'Actuator.002',$,$,#179,$,$,.ELECTRICACTUATOR.)'.
This commit is contained in:
Andrej730
2024-09-06 15:16:35 +05:00
parent a1e51757b1
commit 008e2c01c3
@@ -507,6 +507,11 @@ def set_element_value(
return
elif key == "id":
return
elif key == "predefined_type":
print(
f"WARNING. Assigning 'predefined_type' is not yet supported. Skipping value '{value}' for element: '{element}'."
)
return
elif key == "classification":
element = ifcopenshell.util.classification.get_references(element)
elif key in ("x", "y", "z", "easting", "northing", "elevation") and hasattr(element, "ObjectPlacement"):