diff --git a/src/ifcpatch/ifcpatch/recipes/ExtractElements.py b/src/ifcpatch/ifcpatch/recipes/ExtractElements.py index 19455793f3..d880def5ed 100644 --- a/src/ifcpatch/ifcpatch/recipes/ExtractElements.py +++ b/src/ifcpatch/ifcpatch/recipes/ExtractElements.py @@ -111,7 +111,7 @@ class Patcher(ifcpatch.BasePatcher): if element.is_a("IfcProject"): proj = self.new.add(element) for ctx in element.RepresentationContexts: - for coop in ctx.HasCoordinateOperation: + for coop in getattr(ctx, 'HasCoordinateOperation', ()): self.new.add(coop) return proj return ifcopenshell.api.project.append_asset(