It was looking for IFC entities with the attribute from Attribute.name but wasn't considering ifc subclasses that inherit from that entity.
This commit is contained in:
Andrej730
2024-02-13 11:58:49 +05:00
parent 41996daaa7
commit e5b63853ef
+1 -1
View File
@@ -224,7 +224,7 @@ class Attribute(Facet):
for entity in schema.entities():
for attribute in entity.attributes():
if attribute.name() == self.name:
results.extend(ifc_file.by_type(entity.name(), include_subtypes=False))
results.extend(ifc_file.by_type(entity.name(), include_subtypes=True))
# TODO: perhaps we should consider value in the filter