Changing Modelica Versions of Libraries Used in Modelica Behaviors

You can change the version of libraries used in Modelica behaviors.

The versioning of the behaviors themselves are managed by the versioning of the enclosing references. You can use the standard versioning commands, see Collaborative Lifecycle User´s Guide: Versioning.

For behavior libraries, more options for versioning are available if you enter the Dymola Behavior Modeling app. For more information see Dymola Behavior Modeling User´s Guide: Working with Behavior Libraries: Versioning.

Tip: To see where a given Dymola behavior library is used, you can use the Relations. For more information see Dymola Behavior Modeling User´s Guide: Working with Behavior Libraries: Finding Where a Modelica Library is Used.

  1. Select the functions or logical components with behaviors that need to be updated.

    Notes:
    • You can multiselect functions and logical components by pressing the Ctrl button when selecting.
    • You can mutliselect a mix of functions and logical components at the same time.
    Important: When a function or logical component is selected, all subfunctions or logical subcomponents of the selected function/logical component are included in the versioning (you do not have to select them separately).

  2. From the Behaviors section of the action bar, click Modelica Versioning .
    The Versioning dialog box appears.

  3. To modify the library version of a library used by the selected behavior, do the following:
    1. If the library is indicated by a hanglock in the Status column, the library with this version is loaded in session and you cannot change the version. Right-click and select Unload uses.
      The result is:
      • The library is unloaded from session.
      • The library is unlocked in the dialog box and you can change the version.
    2. Select another library version from the drop-down list in the Libraries used in the selected component area (see figure above).

    • You can select:
      • Any library version from the database, provided that a version of the library is not loaded in session.
      • The current library version for a library that is loaded in session.
    • You cannot select any library that you do not have license for; this is indicated by the icon in the Status column.

    Once a new library version for the library to be used is selected, a conversion script might be proposed from the Conversion Script column.
    Warning: We strongly advise not to clear the Conversion Script option. If you convert the library without using this conversion script, important changes could be lost. Clearing the Conversion Script option is for advanced user only.
  4. Click OK to validate the changes.
  5. If you have unloaded any library to be able to change the version, reload the library.
  6. Select Share > Save to save the changes.