Migrate the IFC Schema from IFC2X3 to IFC4
Feature Group: Convert | IfcOpenShell / IfcPatch
This feature convert an IFC2X4 to an IFC4 using IfcOpenShell IfcPatch module with 'Migrate' recipe.
This is useful when a feature is only available from IFC4 onwards and the IFC schema version of IFC file from the AECO tool is IFC2X3.
As an example, tessellation is available as of IFC4 but not with previous schema versions.
Submit the processing request
#
# Migrate an IFC file to a different schema (IFC2X3 -> IFC4)
#
class MigrateIfcSchema_Instruction(BaseModel):
sourceFileURL: str | None = "http://localhost:8002/IFC_SOURCE_FILES/Duplex_A_20110907_optimized.ifc"
targetSchema: str | None = "IFC4"
class MigrateIfcSchema_Result(BaseModel):
resultPath: str # relative path of the result file (ifc)
runtime: float | None = 0.0 # in seconds