Merge Model

Sakari Lehtinen
Sakari Lehtinen Expert (Gold)

The Merge Model tool merges (combines) several IFC models and their structures together. The models can be from different disciplines of the same project, or they can be different building storeys of a big HVAC model. The Merge Model tool is also used for merging location prisms, which are needed for using the Split Objects tool.

simplebim_tool_merge_model.png

Simplebim performs a “deep merge” of the models. Instead of simply placing all models on top of each other in the same 3D space, Simplebim merges the data structures of the models such that the result is one holistic model, just like if it were originally created in one application. The resulting model can, for example, have one set of building storeys, one set of systems, material definitions, type objects, etc. The units and other supporting metadata are also harmonised.

By default, you can only merge models that use the same IFC schema version as the current model. This means you can merge two IFC2x3 models or two IFC4 models, but you cannot merge an IFC2x3 model with an IFC4 model, or an IFC4 model with an IFC2x3 model. To merge models of different IFC versions, turn on the Match IFC version (beta) setting, see Merging models of different IFC versions below.

You can export the merged model back to a single IFC model. Or create multiple submodels, for example, including objects from a building storey from all the models. You can use all data processing tools for enriching the merged model, just like you would with a single model.

The tool merges the files one by one and reports each file in its own report group. If a file cannot be merged, for example, because it is not found or its IFC version does not match, the tool reports an error for that file and continues with the next one.

Handling empty containers after the merge

When containers (sites, buildings and building storeys) are merged, the original container of the merge model is added to the resulting model. However, this container will be empty. These empty containers are added to make it easier to understand the merge process and to allow manual corrections if needed. Most often, these empty containers are not needed, and you have the option to automatically delete them as part of the merge process, using the Delete Empty Containers tool.

Merging models of different IFC versions

If you turn on the Match IFC version (beta) setting, the tool converts each merged model to the IFC version of the current model before it is merged. The conversion works upwards and downwards, so you can merge an IFC2x3 model into an IFC4 model and an IFC4.3 model into an IFC2x3 model. The current model keeps its IFC version.

The conversion is the same that the Upgrade IFC (beta) and Downgrade IFC (beta) tools do for the current model. Their articles describe what the conversion changes in the model and what is not carried over. The conversion reports into its own report group, Converting IFC version, next to the import and merge steps of the file.

If the conversion of a file fails, the tool reports an error and the file is not merged. For example, an IFC4.3 model that contains alignments cannot be downgraded, because IFC4 and IFC2x3 cannot represent alignments.

When a model is downgraded, some of its objects can have geometry that the older IFC version cannot express, for example, triangulated face sets in IFC2x3. The tool marks these objects so that the Export IFC tool writes their geometry as BREP geometry made from the triangles that Simplebim shows in 3D, and reports how many objects were marked. Objects that are outside the view scope cannot be marked. They are exported without geometry, and the tool reports this as a warning.

Using wildcards in the file names

When the tool runs in a dataflow, you do not need to know the exact names of the files in advance. A file name can contain the wildcards * and ?, where * stands for any number of characters and ? for exactly one character. Before the step runs, the dataflow replaces each pattern with the files in the folder that match it, and the tool merges them all. This way the same dataflow merges whatever files are in the folder when it runs, for example the latest models from each discipline, without editing the dataflow.

  • *.ifc merges every IFC file in the folder.
  • Structural_*.ifc merges the files whose name starts with Structural_.
  • Model_v??.ifc merges Model_v01.ifc, Model_v12.ifc and so on, but not Model_v1.ifc.

Type the pattern into the box of the File Name(s) setting. Under This PC write the folder and the pattern, for example C:\Models\Architect\*.ifc. Under a named file location write the pattern only, for example *.ifc, because the location is the folder. Only the file name can contain wildcards, not the folder, and only the files in the folder itself are found, not the files in its subfolders. With the list button you can combine several patterns and exact file names in one setting.

Before the step runs, the dataflow report lists the files that were found and their sizes under Resolving file locations, so you can check from the report which models were merged. If a pattern matches no file, nothing is merged for it. When no file at all is found, the dataflow reports it and the step does nothing.

Wildcards work only when the tool runs as a dataflow step. When you run the tool directly, outside a dataflow, the file name is used as it is, and a name with wildcards is reported as a file that is not found. Note also that *.ifc matches all files whose extension starts with .ifc, for example .ifczip files.

Settings

simplebim_tool_merge_model_settings.png

File Name(s)

Defines one or more IFC files to merge into the current model. The tool accepts .ifc, .ifczip and .zip files.

The setting starts with a file location drop-down. Under This PC the box holds the full path of the file, and the three dots open the Windows Select file dialog. Under a named file location the box holds the name of the file only, because the location is the folder, and the three dots open a dialog that lists the files in the folder of the location. Use the list button to enter several files. In a dataflow the file names can contain the wildcards * and ?, so that you do not need to know the exact file names in advance, see Using wildcards in the file names above. You can read more about file settings in Introduction to Tools and Dataflow Settings Dialog.

“Current model” means the model that is currently open in Simplebim. The current model may be a single model or it may already have sub-models.

Deep Merge

The following settings define how the model tree (containment) of the merged models is combined with the model tree of the current model.

Sites

Defines how the site objects in the model tree (containment) of the models are merged. The default value is Merge Into One Site.

Don't Merge

Don't merge sites. This also means, that nothing assigned to the sites is merged either.

simplebim_tool_merge_model_dont_merge_site.png
Nothing has been merged. Everything has been moved to the common project.

Merge Into One Site

The resulting model should have only one site. Note however, that nothing assigned to the sites is merged, if not explicitly defined with the Facilities and Facility Parts settings.

simplebim_tool_merge_model_merge_sites.png
Sites have been merged. The buildings have been moved to the site.

Merge By Name

Merge sites by name. Only the site objects with the matching name are merged.

Facilities

Defines how the facility objects in the model tree (containment) of the models are merged. In the building models, the most common facility object is a building. In infra models you have other facilities you can merge. This option is available, if you are merging sites. The default value is Merge Into One Facility.

Don't Merge

Don't merge facilities. See the picture under the Sites setting.

Merge Into One Facility

The resulting model should have only one facility under each Site.

simplebim_tool_merge_model_merge_buildings.png
Sites and building have been merged. The building storeys have been moved under the merged building.

Merge By Name

Merge facilities by name. Only the facilities with the matching name are merged.

Facility Parts

Defines how the facility part objects in the model tree (containment) of the models are merged. In the building models, the most common facility part object is a building storey. In infra models you have other facility part you can merge. This setting is available, if you are merging Facilities. The default value is Merge By Name.

Don't Merge

Don't merge facility parts. See the picture under the Facilities setting.

Merge By Name

Merge facility parts by name. Only the facility parts with the matching name are merged.

simplebim_tool_merge_model_merge_building_storeys.png
Facility Parts (building storeys) are merged, if they have the same name.

Options

The following settings define what else the tool does with the merged models.

Create Group

Defines whether to create a group containing the objects of the merged model. One group is created for each merged file. The group gets the same objects of the merged model that the All objects selection would select: building elements, spaces, spatial zones, grids, alignments, referents and proxy objects. Spatial containers, such as building storeys, are not added to the group. The default value is OFF.

Group Category

This setting is available when Create Group is ON.

Defines the group category of the group. You can use the name or the key of the category. If the category is not found in the model, the group is created in the Generic Group category. The default value is Generic Group.

Group Name

This setting is available when Create Group is ON.

Defines the name of the group containing the objects from the merged model. The default value is Merged.

Optimize Geometry

Defines whether to optimize 3D geometry by reducing the number of triangles for the 3D rendering. This makes navigating big models easier. The default value is ON.

Note that this setting only affects to the 3D rendering. It does not optimize the geometry for the IFC export. And the geometric operations done by other tools will use the full precision geometry, whether this option is on or off.

Fix Broken Geometry (slow)

Defines whether the import tries to fix mathematically broken geometries. This is a very heavy operation, so it is not recommended for all the models. A typical use case to use the fixing is when merging the location prisms. This makes sure that the splitting operations will work more reliably. The default value is OFF.

Match IFC version (beta)

Defines what happens to a merged model whose IFC version differs from the IFC version of the current model. The default value is OFF.

If OFF, such a model is not merged and the tool reports an error.

If ON, the model is upgraded or downgraded to the IFC version of the current model before it is merged, see Merging models of different IFC versions above. The setting is in beta: check the merged objects carefully before you use the model in production work.

Release Notes

Simplebim 12.0 SR1

  • New Match IFC version (beta) setting. It converts the merged models to the IFC version of the current model instead of refusing them.
  • New Group Category setting for the group that Create Group creates.
  • The group that Create Group creates now gets the same objects as the All objects selection, including grids, alignments, referents, spatial zones and proxy objects. Previously it got building elements and spaces only.
  • The settings are grouped under the Deep Merge and Options headings.

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

1 comment

  • Comment author
    Razieh Yar

    Hello, I have a Prism that is IFC2x3, but my model is IFC4. As you wrote here, I can’t import the Location Prism and merge in V11. But it’s possible to do the split in V10, right?

     

    0

Please sign in to leave a comment.