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
@@ -749,7 +749,7 @@ class Property(Facet):
ifcopenshell.util.unit.si_type_names[unit.UnitType],
)
elif prop_entity.is_a("IfcPhysicalSimpleQuantity"):
prop_schema = prop_entity.declaration().as_entity()
prop_schema = prop_entity.declaration.as_entity()
data_type = prop_schema.attribute_by_index(3).type_of_attribute().declared_type().name()
if self.dataType and data_type.lower() != self.dataType.lower():