entity_instance: switch to use of declaration as a property

Fixes most of the bonsai tests.
This commit is contained in:
Andrej730
2026-07-22 18:46:43 +05:00
parent c2badadfc4
commit 3536bcf46d
8 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ class ifc5D2json:
data["UnitSymbol"] = ifcopenshell.util.unit.get_unit_symbol(unit)
if quantity.is_a("IfcPhysicalSimpleQuantity"):
measure_class = (
quantity.declaration()
quantity.declaration
.as_entity()
.attribute_by_index(3)
.type_of_attribute()