Comparing and Merging Classes

You can compare and merge Modelica classes. You can select the source classes from the classes in session as well as from the ones in the database. By default WinMerge and KDiff3 are supported for comparing and merging classes, you can also provide a command line for a custom tool.

Note: If you want to compare libraries or other classes of different version, that is, having the same name, you can also use the command Open Comparison Tool. This tool also supports comparing resources of libraries, as well as merging libraries.


Before you begin: Make sure that you have:
  1. Installed the external tool for comparing and merging.
  2. Specified the corresponding preferences for the tool from select Me > Preferences > App Preferences > 3D Modeling > Systems Modeling and Execution > Dymola Behavior Modeling , the Comparison tab.
  1. Click the First source class input box and select a class from the Package Browser.
    The first source class is selected.
  2. Click the Second source class input box and select a class from the Package Browser.
    The second source class is selected.
  3. Optional: To merge the two source classes and store the merge in a third class, do the following:
    1. Make sure that you have created a target class that is loaded in session.
    2. Click the Target class input box to select it.
    3. From the Package Browser, click the class to select it.
    The target class is selected.
  4. To start the comparison tool, click OK.
    You can compare the source models, and if you have selected a target class, you can use the comparison tool to create a merged class that is stored in the target class.
    Important:
    • Dymola Behavior Modeling cannot be used while the external tool is running.
    • If you create a merged file, you must save the result in the external tool before closing it.