ifcpatch.recipes.Migrate
¶
Module Contents¶
- class ifcpatch.recipes.Migrate.Patcher(src: str, file: ifcopenshell.file, logger: logging.Logger, schema: Literal['IFC2X3', 'IFC4', 'IFC4X3'] = 'IFC4')¶
Migrate from one IFC version to another
Note that this is experimental and will try to preserve as much data as possible. Upgrading to IFC4 is more stable than downgrading to IFC2X3.
- Parameters:
schema (str) – The schema identifier of the IFC version to migrate to.
Example:
# Upgrade an IFC2X3 model to IFC4 ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "Migrate", "arguments": ["IFC4"]})
- patch()¶
- file¶
- logger¶
- schema¶
- src¶