diff --git a/src/ifcpatch/ifcpatch/recipes/Migrate.py b/src/ifcpatch/ifcpatch/recipes/Migrate.py index 5280875ce9..8a4c6768cd 100644 --- a/src/ifcpatch/ifcpatch/recipes/Migrate.py +++ b/src/ifcpatch/ifcpatch/recipes/Migrate.py @@ -47,6 +47,6 @@ class Patcher: self.file_patched = ifcopenshell.file(schema=self.schema) migrator = ifcopenshell.util.schema.Migrator() for element in self.file: - migrator.migrate(element, self.file_patched) + new_element = migrator.migrate(element, self.file_patched) print("Migrating", element) - print("Successfully converted to", migrator.migrate(element, self.file_patched)) + print("Successfully converted to", new_element)