mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
Fix #4921. When upgrading to IFC4X3, preprocess the file to remove deprecated style assignments
This commit is contained in:
@@ -46,6 +46,7 @@ class Patcher:
|
||||
def patch(self):
|
||||
self.file_patched = ifcopenshell.file(schema=self.schema)
|
||||
migrator = ifcopenshell.util.schema.Migrator()
|
||||
migrator.preprocess(self.file, self.file_patched)
|
||||
for element in self.file:
|
||||
new_element = migrator.migrate(element, self.file_patched)
|
||||
print("Migrating", element)
|
||||
|
||||
Reference in New Issue
Block a user