You can compare the currently open project with another project – a reference project. The differences in contents, properties, or access rights are detected and shown in a comparison view.
Application example
Application example
How to compare Automation Builder projects, is decribed in an ⮫ application note.
Clicking “Project Compare” opens the “Project Comparison” dialog for you to configure and run the comparison. Then the result is shown in the “Project Comparison – Differences” view where the objects are aligned in a tree structure. Objects that indicate differences from the respective reference object are identified by colors and symbols. This is how you detect whether or not the contents, properties, or access rights are different.
For differences in the contents, you can also open the detailed “Project Comparison – <object name> Differences” view in order to zoom into the object. In the detailed comparison view, the source code of the object is compared to the source code of the reference object. Detected differences are flagged. Previously opened views are not closed. In this way, you can have any number of comparison views open and read them, in addition to the project comparison view.
To resolve the detected differences, you can decide whether or not the state from
the reference project should be accepted to the current project. Accepting the state
from the current project to the reference project is not possible. In the active comparison
view, you can enable the acceptance, for example different code lines or blocks by
means of the ,
, or
commands. These positions are highlighted in yellow. Note that any other open comparison
views are inactive (write-protected, read-only). Therefore, you can activate differences
to be accepted in exactly one comparison view only. If it is supported by the editor,
you can add a third comparison view. This third view shows the result of the resolution
actions for the differences.
When exiting the active comparison view, if you confirm that the differences that are activated for acceptance are actually accepted into the current project, then the current project is modified.
In order to exit the project comparison completely, close the project comparison view.
-
Creating Comparison Views
-
Opening the Detailed Comparison View