This commit is contained in:
Thomas Krijnen
2026-01-10 11:52:08 +01:00
parent 0604db06e9
commit 0a9e29ce45
6 changed files with 15 additions and 25 deletions
@@ -639,9 +639,7 @@ def set_element_value(
except:
# Try to cast
data_type = ifcopenshell.util.attribute.get_primitive_type(
element.declaration()
.as_entity()
.attribute_by_index(element.get_argument_index(key))
element.declaration().as_entity().attribute_by_index(element.get_argument_index(key))
)
if data_type == "string":
value = str(value)