ifcpatch.recipes.Migrate#

Module Contents#

class ifcpatch.recipes.Migrate.Patcher(src, file, logger, schema='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(self)#