We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abe5ed commit 67a7e71Copy full SHA for 67a7e71
1 file changed
src/ifcopenshell-python/ifcopenshell/util/element.py
@@ -445,7 +445,7 @@ def get_elements_by_pset(pset: ifcopenshell.entity_instance) -> set[ifcopenshell
445
"""Retrieve the elements (or element types) that are using the provided property set."""
446
is_ifc2x3 = pset.file.schema == "IFC2X3"
447
elements = set()
448
- if pset.is_a("IfcPropertySet"):
+ if pset.is_a("IfcPropertySet") or pset.is_a("IfcQuantitySet"):
449
rels = pset.PropertyDefinitionOf if is_ifc2x3 else pset.DefinesOccurrence
450
for rel in rels:
451
elements.update(rel.RelatedObjects)
0 commit comments