mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +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 entity in schema.entities():
|
||||||
for attribute in entity.attributes():
|
for attribute in entity.attributes():
|
||||||
if attribute.name() == self.name:
|
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
|
# TODO: perhaps we should consider value in the filter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user