Merging Structures

You can integrate changes from one branch to another, and choose which content you want to keep from both structures. You can choose to either overwrite the target structure, or revise it to keep the previous content available.

The user interface of the Merge command is based on the Compare app. The same preferences are available, except the ones specific to the Compare app. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Compare Basics | Choosing Preferences.

Important: The Merge command is not available for all types of objects. In addition, this page describes the generic behavior of the command. Specificities might exist depending on the object type (for example, the propagation of the operation to other objects, fields not available, or additional capabilities). For more information, see 3DEXPERIENCE | PLM Components.


Before you begin: Create branches or revisions of the object.
See Also
About the Merge Command
In Other Guides
About Revisions, Branches, and Duplicates
Creating a Revision of a Physical Structure Based on an Existing Object
Creating a Revision of a Logical or Functional Structure Based on an Existing Object
  1. To select the revisions to merge, do one of the following:
    OptionDescription
    1
    1. Select a revision.
    2. From the Lifecycle section of the action bar, click Merge.

      The Compare - Merge widget appears and lets you select a source revision or branch.

    3. Select the revision or branch that you want to merge into the selected object in the Revisions dialog box, and click Proceed.

      If you click Cancel, no revision is added on the source side. You can click:

      • Open Revisions of ... to reopen the Revision Explorer and select a revision of the object.
      • Open Filter of ... to open or create a filter of the revision that you selected.
      • Open Saved Filters of... to open a saved filter of the object.

    2
    1. Select a revision in the Revision Explorer. For more information, see Exploring Revisions, Duplicates and Branches with the Revision Explorer.
    2. Right-click the second revision and select Merge into Selected.
    3 Available if you open at least two revisions in the Collaborative Lifecycle app.
    1. Select two revisions of the same object in the same or in different branches.
    2. From the Lifecycle section of the action bar, click Merge.
    The Compare - Merge widget appears, with the first revision that you selected on the left (target) , and the second revision or filter that you selected on the right (source).
    Tip: You can pin it to a dashboard. For more information, see Managing Web Apps.
    Important:
    • If the type of the object that you select is not supported, the Merge command is grayed out.
    • Once you click the Merge command, if a minor revision other than 1 or an object with an Effectivity-based revision mode is impacted by the merge operation, you receive an error message. Click Details to open the report and view information about unsupported objects.

      For more information, see About Revision Modes and Their Effects on Revisions and Branches.

    • After you click Merge in the Compare - Merge widget, you receive an error message if an unsupported type, extension, connection, or relationship that was not expanded in Compare - Merge is found in the structure.
  2. Optional: To replace the objects opened on either side:
    1. Click the arrow next to the object to display the shortcut menu.
    2. Click one of the following commands:
    CommandDescription
    Replace by Revision Lets you select another revision or branch of the object.

    For more information, see Revision Explorer.

    Apply Filter Lets you select or create a filter of the object.

    For more information, see Advanced Filtering.

    Swap

    Switches the sides that the objects are currently assigned.

    Tip: This command is also available directly on the home page, between the two loaded objects (if the size of the widget is wider than tall).

    Remove Removes the object, and lets you open another one.

    Tip: To remove both objects and merge other ones, click Clear. Then, you can either drop new revisions or branches into the Compare - Merge widget, or click Open Content to select them.

  3. To create a revision of the target object instead of integrating changes from the source structure in the selected revision of the target object, select Create a revision on the lower left.

    this option is cleared. Your choice is persistent the next time you use the command.

    Note: If you select this option and your structure contains multiple revisions of the same reference, an error message appears.
    Tip: If your source or target structure contains multiple revisions of the same object, clear this option to proceed to the merge.

  4. Click Compare.

    The Compare - Merge displays the comparison of the target and source structures that you selected. The first level of the structures is expanded. Three tabs are available:

    Tab Description
    Merge Structure Shows a structural comparison of the selected object, and its branch or revision that you selected in the Revision Explorer. The two structures appear side by side with the following color code:
    • (orange) for the target structure in the left column. It corresponds to the object that you selected first.
    • (blue) for the source structure in the right column. It corresponds to the object's branch or revision that you selected in the Revision Explorer.
    Matching objects are displayed side by side on the same row. A compare status is assigned to each child object. For more information, see Compare Statuses for the Merge Command.
    Properties Shows a comparison of the properties of the objects selected in the Merge Structure tab. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Comparing the Properties, Classification, and Effectivities of Objects.
    3D View Shows a geometric comparison of the objects selected in the Merge Structure tab. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Comparing the Geometry of Objects..
    Important: This tab does not display the result of the merge operation.

    You can modify the organization of the tabs. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Modifying Compare's Layout.

    Note: The Restore Layout command is not available.

  5. Optional: To display and merge the materials or publications applied to the structure objects:
    1. From the toolbar, select View Settings.
    2. Select the Show Materials or Show Publicationsoption.
    3. Click Apply.
    The applied materials or publications are displayed in the structure comparison, and you can select actions for them. For more information, see About Merge and Materials and About Merge and Publications.
  6. To display the content in the Merge Structure tab according to your needs, do the following:
    ActionDescription
    Navigate between structure differences Click one of these commands:
    • Previous Difference: Lets you navigate to the closest difference in the direction toward the root.
    • Next Difference: Lets you navigate to the closest difference in the direction away from the root.
    • Number of Differences: The number above the arrow indicates the number of differences between the two structures.

      Click the arrow, and then click First Difference or Last Difference to navigate to the first or last difference in the tree.

    Hide the reference or source structure Click at the top of the reference or source structure. Click to display it again.
    Choose the compare statuses you want to apply to the comparison From the toolbar, click Choose Statuses to Display, and select or clear the statuses of your choice.

    The compare statuses you selected are applied to the comparison. The objects matching the criteria of the compare statuses you cleared are considered as identical. For example, if you clear the Branch status, all branches are treated as equivalent, and the Identical status is assigned to them instead of Branch.

    Filter the child objects displayed in the structure according to their compare status In the compare status legend, clear the compare statuses you want to hide from the structure.

    Any child object with one of these compare statuses is hidden from the structure comparison. All the children of these objects are also hidden from the structure comparison, independently from their own compare status.

    To display all compare statuses again, from the main toolbar, click Refresh.

    Notes:
    • If an object has several compare statuses assigned, it is hidden from the structure comparison if any of its compare statuses is cleared in the compare status legend.

      You can select the Hide row only when all applicable statuses are unchecked option to modify this behavior. For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Compare | Compare | Compare Basics | Choosing Preferences.

    • The roots of the two compared objects are always displayed, even if you hide their assigned compare status.
    • This filter is different from the Choose Statuses to Display command. With this filter, the compare statuses you clear from the compare status legend are still applied to the objects, but they are not displayed.

    Expand or collapse the structures Click Choose Expansion Level of Tree and select one of the following commands:
    • Expand All: Expands all the children of the selected object.
    • Expand N Levels: Expands N levels of the selected objects.
    • Collapse All: Collapses all the children of the selected object.

      When you use the - sign to manually collapse a node, only this node is collapsed, and not the children under it. If you expand the node again, the children that were expanded are still expanded.

  7. For each object of the structure, to choose the action for the different objects in the structure, select the object and, from the toolbar click one of the following commands:
    • Revise Target
    • Revise Target and Take Source Content
    • Overwrite Target and Take Source Content
    • Keep Target
    • Keep Source
    • Remove
    • Branch Source
    • Ignore

    For more information, see Available Actions with the Merge Command.

    Important:
    • If you selected the Create a revision option, the default action applied to the root object is Revise Target and Take Source Content. If you cleared this option, the default action applied to the root object is Overwrite Target and Take Source Content.

      You can change the action applied to the root object, but this impacts whether the merge operation creates a revision or overwrites the existing target structure.

    • If your source or target structure contains multiple revisions of the same object, you can:
      • Merge sections of the structure that do not involve multiple revisions.
      • Merge references or representations present in multiple revisions, but you cannot select the Revise Target or Revise Target and Take Source Content commands for more than one revision of each revision family.
    • If your structure contains multiple instances of an object and you change the action to Revise Target, and another to Keep Source, the Result preview shows the latest scheduled revision to align with server behavior and revise rows on the same shared reference.
    • Depending on the object type, some actions might not be available.
    Tips:
    • To apply the same action to several objects, select them together, and select the operation from the toolbar.
    • You can also select the action for each child object from the column between the target structure and the source structure, or from the shortcut menu when you right-click an object.
    • You only see the actions that are allowed for the selected object.
    • To display the Title column, right-click the column header, and select the columns you want to display.

      In the Result structure, the Title column reflects the merge action selected for the node:

      • and Revise Target: displays the instance title of the target.
      • Overwrite Target and Take Source Content, Revise Target and Take Source Content, , and Branch Source: displays the instance title of the source.
      • Remove and Ignore: does not display instance title.

      You can also display the Enterprise Item Number column in the Source and Target structures.

      This can help you better identify objects involved and take more qualified decisions about the merge actions to achieve the required result.

    The Result column displays a preview of the structure to be created, integrating changes from the source structure into the target structure. Content coming from the target structure is displayed with an orange bar, and content coming from the source structure is displayed with a blue bar.
  8. Optional: To filter the objects displayed in the structure according to the action assigned to them, from the toolbar, click Action Filter and select or clear the actions of your choice.
    Visible actions are indicated with a blue bar in the menu.

    If the action assigned to objects is modified, click Reapply Current Filter to hide or show the objects according to the filter and the new action assigned to them.

  9. Click Merge.

Result: The content of the target structure - in the selected revision or in a new one - is modified using the content of the source branch or revision, according to the options that you specified.

If you selected the Create a revision option, the target revision is not modified, but a revision is created instead, with the modifications. This revision appears in the user interface.

If you selected a large amount of data and the operation requires a prolonged amount of time to complete, a message appears. The operation continues in the background, and a notification appears in the 3DNotification Center when it is completed, if Collaborative Lifecycle notifications are activated. For more information, see Customizing 3DNotifications.