Customization > Automation Interface > Functions > Functions for Objects > Merge function (automation interface)
Merge function (automation interface)
Syntax:
<target object>.Merge <source object>
Where:
<target object> is an object that specifies the target object for the merge operation. Tell me more...
<source object> is an object that specifies the source object for the merge operation. Tell me more...
Merges a source object into a destination object. This function is the equivalent of the Merge context menu command in Modeler.
Note that after the merge, it is the destination item or diagram that remains in the model.
Examples
This example merges Class1 into Class2:
Set objSource = Dictionary.Item("Class","Class1")
Set objTarget= Dictionary.Item("Class","Class2")
Call objTarget.Merge(objSource)