ifcpatch.recipes.MergeProject#

Module Contents#

class ifcpatch.recipes.MergeProject.Patcher(src, file, logger, filepath=None)#

Merge two IFC models into one

Note that other than combining the two IfcProject elements into one, no further processing will be done. This means that you may end up with duplicate spatial hierarchies (i.e. 2 sites, 2 buildings, etc).

Parameters

filepath (str) – The filepath of the second IFC model to merge into the first. The first model is already specified as the input to IfcPatch.

Example:

ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "MergeProject", "arguments": ["/path/to/model2.ifc"]})
get_equivalent_existing_context(self, added_context)#
patch(self)#
reuse_existing_contexts(self)#