Overview of the Merge Command
Merge Overview
The Merge command lets you combine content from a structure
(target) and one of its revision or branch (source) into a result structure.
It compares the content of the two structures and shows their differences, helping you
choose how to handle each child object based on its compare status. You can either keep
content from the source or the target structure, revise or overwrite the object in the
target structure, remove objects for the target structure, or ignore objects in the source
structure.
You can merge the content directly into the target revision, or into a new revision. This
lets you bring changes between branches while controlling exactly the content of the
result structure.
For example, consider the following structure for P1 C as the target
structure:
 and its P3 B branch as the source structure:

The following dialog box shows a result structure that:
- Contains content from P1C (Child3) and P3B (Child4).
- Keeps the Child2 content from revision A in the target structure. You could also
choose to keep the content of revision B in the source structure instead.
- Excludes Child5 that is in the source structure.
Typical Use Cases
The Merge command lets you isolate a part of a larger structure,
work on it, and redeliver it later into the main structure. You can also manage merges if
different people work on the same project. In such processes, you can use
Merge in both ways:
- When you work on a part of a structure in isolation, you can merge the content of
the main structure into your branch. This lets you get the latest changes and work on
the latest revision of the context data.
- Once your finish your work on your part of the structure, you can merge your content
into the main branch to deliver your changes.
Target Structure, Source Structure, and Result Options
Target and Source Structures
The target structure is the structure into which you are merging content.
The source structure is the structure containing the content that you want to include in
the target structure (P3 B in the previous examples). The source structure can be any
revision of the target structure, in the same or another branch. It can also be a
filter.
Result Options
In the Merge dialog box, the result corresponds to the new content
of the target structure after the operation. You can either:
- Merge the content directly into the target structure. In that case, the result of
the merge operation replaces the content of the revision used as target.
For
example:

P1 and P3 branches are merged into P1 C, and you do not create any
revision. P1 C (selected revision) contains content from both P1 C and P3 B. You can
overwrite some of the previous content of P1 C with modifications made in P3
B.
- Merge the content into a new revision of the target structure. The content of the
revision used as target is unchanged, and the result of the merge operation is
available in a new revision.
For example:

P1 and P3 branches are merged into P1 D, which is a revision of P1 C
(selected revision). P1 D contains content from P1 C and modifications made to P3 B.
In P1 D, you can overwrite previous P1 C content with modifications made in P3 B.
However, the content of P1 C revision is not overwritten.
Compare Statuses for the Merge Command
To help you identify the objects that you want to merge, the user interface of the
Merge command is based on Compare
app. The
Compare - Merge user interface lets you visualize the differences
in the target and source structures, their geometry, and their properties. In the
Merge Structure
tab, each
child object has a compare status assigned. This command uses the usual compare statuses.
For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Compare Statuses.
In addition, these specific compare statuses are available next to the other compare
statuses:
| Color Code |
Status |
Description |
| |
Modified Reference |
A user modified the geometry of the object (reference) in a desktop app.
|
| |
Modified Instance |
The modifications can be one of the following:
- A user modified the positioning of the object's instance in a desktop app.
- A user replaces a child object with a duplicate, revision, branch, or an
unrelated object (Replaced compare status).
|
| |
Modified Child |
The object's structure contains modified nodes. Those modifications can be one
of the following:
- A user modified the geometry of the child object (reference) in a desktop app.
- A user modified, added, or removed a child object instance. For example, a
user moved the geometry.
- A user modified, added, or removed a child publication or connection. For
example, a user added a mechanical constraint.
|
Note:
If an object's structure contains modified nodes that you
collapsed, the Modified Child status
appears next to the collapsed root:

If you expand the same structure again, the Modified Child status no longer appears next to the root,
unless a user modified an immediate child object:

Merge Actions
Available Actions with the Merge Command
You can specify which child objects of the structure you want to revise, branch,
overwrite, keep, remove, or ignore in the result structure.
| Action |
Description |
|
Revise Target |
Creates a revision of the selected objects using the content of the target
structure.
The result structure contains this revision.
|
Revise Target and Take Source Content |
Creates a revision of the selected objects using the content of the source
structure.
The result structure contains this revision.
|
|
Overwrite Target and Take Source Content |
Replaces the content of the selected objects and their usage in the target
structure with the content of the corresponding objects in the source
structure.
The usage of the object (instance) is still connected to the target object,
but the content of target object changes to the content of the source
object.
This action is not available for objects under change control. For more
information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Change Execution Web App.
|
|
Keep Target |
Uses the object of the target structure in the result structure.
|
|
Keep Source |
Uses the object of the source structure instead of the object of the target
structure in the result structure.
The usage of the object (instance) is connected to the source object instead
of the target object. The target object does not change.
|
|
Remove |
Does not keep the objects selected in the target structure in the result
structure.
|
|
Ignore |
Does not insert the objects selected in the source structure in the result
structure.
|
|
Branch Source |
Creates a branch of the objects selected in the source structure.
The result structure uses this branch.
|
Compare Status and Available Actions
The available actions for each object in the structure depend on their compare
status:
| Compare Status |
Available Actions |
| Left-only |
Revise Target, Keep Target, Remove
|
| Right-only |
Branch Source, Keep Source, Ignore |
| Identical |
Revise Target, Keep Target, Keep Source |
|
Replaced
Duplicate
|
Keep Target, Keep Source, Remove |
|
Revision
Branch
|
Revise Target, Revise Target and Take Source Content, Overwrite Target and
Take Source Content, Keep Target, Keep Source, Remove |
Default Actions Assigned to Objects in the Structures
The command applies default actions o the root object and the child objects. You can
change them afterward.
|
Create a revision option cleared |
Create a revision option selected |
| Root object, and matching child objects with a difference |
Overwrite Target and Take Source Content |
Revise Target and Take Source Content |
| Matching child objects with no difference |
Keep Target |
Revise Target |
| Matching child objects with the Replaced or
Duplicate status |
Keep Source |
| Nonmatching child objects |
Keep Source if the object's status is
Right-only.
Keep Target if the object's status is
Left-only.
|
Note:
Objects match if the object in the target structure and the object in the
source structure are revisions or branches of the same object, or are identical.
To ensure the validity of the result structure:
- Composed
objects follow the action specified for their parent object. For more information, see
3DEXPERIENCE | PLM Components | PLM Components | Basic PLM Objects.
- Selecting any other action than Remove or
Ignore for an object that is inserted several times in the
structure applies the same action to all this object's instances. For more
information, see 3DEXPERIENCE | PLM Components | PLM Components | Basic PLM Objects.
- Selecting Remove or Ignore for an
object disables all actions for its child objects.
- Selecting Keep Source or Keep Target
for replaced objects:
- Applies the same action to all children present in the kept object (source or
target).
- For other objects, applies the Remove action if you
select Keep Source for the parent, or
Ignore if you select Keep
Target.
Merge Actions in Structures with Multiple Instances or Revisions of an Object
If several revisions of the same object are in the target structure, you can select the
Revise Target or Revise Target and Take Source
Content action for only one of them. You can select any other available
action for the other revisions.
If the same object revision in the target structure matches different revisions in the
source structure, you cannot select the Revise Target,
Remove, Keep Target, Keep
Source actions.
If different object revisions in the target structure match the same revision in the
source structure, or if a different revision in the target structure matches itself or the
same revision in the source structure, you cannot select the Revise
Target, Remove, Keep Source,
and Keep target actions.
If an object revision is in the source structure only, you can select
Ignore, Branch Source, or Keep
Source actions. When you select Branch Source, it
creates a branch of the source child object, even if the source child object is a branch
of an existing child object present in the target structure. It
does not create a revision of this object in the target structure.
Merge and Relation Management
Depending on the existing connections on the objects in the target and source structures,
and the action that you applied to them during the merge operation, these connections might
need a manual update in the appropriate authoring apps to merge
applicative content (update, link rerouting, …).
For example, the merge operation maintains a connection with a mechanical constraint, but
you need to update it when you reopen the merged objects to apply what has been defined in
this mechanical constraint.
|