mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #4314
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user