Fixes referent sorting

This commit is contained in:
Richard Brice
2025-08-29 14:37:17 -07:00
parent 34bf374047
commit a839183ac2
11 changed files with 29 additions and 33 deletions
@@ -29,10 +29,8 @@ def get_referent_nest(file: ifcopenshell.file, alignment: entity_instance) -> en
:return: Returns the IfcRelNests.
"""
if not alignment.is_a("IfcAlignment"):
raise TypeError(
f"Expected IfcAlignment, instead received {alignment.is_a()}"
)
raise TypeError(f"Expected IfcAlignment, instead received {alignment.is_a()}")
for nest in alignment.IsNestedBy:
for related_object in nest.RelatedObjects:
if related_object.is_a("IfcReferent"):