Schema compatibility #8230

This commit is contained in:
Thomas Krijnen
2026-07-02 12:01:57 +02:00
parent de65e50fb5
commit f3e047d78e
@@ -111,7 +111,7 @@ class Patcher(ifcpatch.BasePatcher):
if element.is_a("IfcProject"): if element.is_a("IfcProject"):
proj = self.new.add(element) proj = self.new.add(element)
for ctx in element.RepresentationContexts: for ctx in element.RepresentationContexts:
for coop in ctx.HasCoordinateOperation: for coop in getattr(ctx, 'HasCoordinateOperation', ()):
self.new.add(coop) self.new.add(coop)
return proj return proj
return ifcopenshell.api.project.append_asset( return ifcopenshell.api.project.append_asset(