Skip to content

Commit 67a7e71

Browse files
committed
fix util.get_elements_by_pset to account for quantity sets
1 parent 3abe5ed commit 67a7e71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/ifcopenshell-python/ifcopenshell/util

src/ifcopenshell-python/ifcopenshell/util/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def get_elements_by_pset(pset: ifcopenshell.entity_instance) -> set[ifcopenshell
445445
"""Retrieve the elements (or element types) that are using the provided property set."""
446446
is_ifc2x3 = pset.file.schema == "IFC2X3"
447447
elements = set()
448-
if pset.is_a("IfcPropertySet"):
448+
if pset.is_a("IfcPropertySet") or pset.is_a("IfcQuantitySet"):
449449
rels = pset.PropertyDefinitionOf if is_ifc2x3 else pset.DefinesOccurrence
450450
for rel in rels:
451451
elements.update(rel.RelatedObjects)

0 commit comments

Comments
 (0)