diff --git a/src/ifcpatch/ifcpatch/recipes/ExtractElements.py b/src/ifcpatch/ifcpatch/recipes/ExtractElements.py index e49f1b0af4..e2dfb13866 100644 --- a/src/ifcpatch/ifcpatch/recipes/ExtractElements.py +++ b/src/ifcpatch/ifcpatch/recipes/ExtractElements.py @@ -55,7 +55,7 @@ class Patcher: def patch(self): self.contained_ins: dict[str, set[ifcopenshell.entity_instance]] = {} self.aggregates: dict[str, set[ifcopenshell.entity_instance]] = {} - self.new = ifcopenshell.file(schema=self.file.wrapped_data.schema) + self.new = ifcopenshell.file(schema=self.file.schema_identifier) self.owner_history = None self.reuse_identities: dict[int, ifcopenshell.entity_instance] = {} for owner_history in self.file.by_type("IfcOwnerHistory"):