Managing PLM and Modelica Versions

The PLM and Modelica Version command allows you to version both the PLM reference (for a dynamic library) or PLM representation (for a logical behavior) along with its Modelica version.

More precisely, this command allows you to:

  • Modify the current logical behavior/behavior library:
    • Modelica version (for behavior library only).
    • Libraries to be used, i.e. the 'uses' Modelica clause.
  • Create a new PLM version with the current logical behavior / library (the Modelica version must also be replaced).

This task shows you how to:

Related Topics
About PLM and Modelica Versioning

Edit the Behavior/Library to be Versioned

You can modify the version of a behavior/library, whether it is loaded or not loaded in your session.

  1. Select PLM and Modelica Version from the Authoring toolbar.

    The PLM and Modelica Version dialog box appears.

  2. Select a logical behavior or a behavior library:

    • From your session: select a class in the Package Browser or in the Component Browser.
    • From the PLM database: click the Behavior Library or Logical Behavior button, then browse to select an existing PLM representation.
      Important: This selection will not open the logical behavior / behavior library.

    The PLM and Modelica Version Management dialog box is updated with the convenient information.

Modify the Modelica Version in the Behavior/Library

You can modify the version of the current behavior/library, and modify the version of the library used in the current behavior/library.

  1. To modify the Modelica version of the current library/behavior, edit the Modelica Version field from the Selected PLM Component area.

    Important:
    • This will modify the Modelica text.
    • This field is only available for editable libraries.

  2. Optional: To specify a build number and date for the version of a library/behavior, click More.

    Additional fields appear.


    • Version Build Number: specifies the build number of the version.
    • Version Date: specifies the date of the version.
    • Date Modified: specifies the modification date of the version.
    • Revision Identifier: specifies an identifier for the version.

  3. Optional: To display the Version Build Number column in the list of used libraries, right-click the header. (By default, this column is hidden.)

    This version build specifies the minimum version that should be used for the library. However, this information has no impact on the usage of the library.

    For example, if you recommend "LibToUse version 1.0" versionbuild 3 or above, you can set the value of the Version Build column to 3 in the list of used libraries. However, any version build can be used.

    Note: If the version build number does not correspond to that of the linked library, a warning message appears when clicking OK in the PLM and Modelica Version dialog box. You can close the warning message and use the not recommended version build, or re-open the dialog box and change the version build number.

  4. To modify the version of the library(ies) used by the current library/behavior, select another library from the drop-down list in the Uses Modelica clause area.

    Important:
    • You can select:
      • Any version from database, provided that a version of the library is not loaded in session.
      • The current version for a library that is loaded in session.
    • You cannot select a different version for a library that is loaded in session. To select a different version for a loaded library, you must first unload this library.

    Once a new version for the library to be used is selected, a conversion script can be proposed from the Conversion Script column.

    Warning: We strongly advise not to uncheck the conversion script option.

    A conversion script is sometimes created in a library to help converting major changes from a version to another one. If you convert the library without using this conversion script, important changes could be lost. Unchecking the conversion script is for advanced user only.

Create a PLM Version with the Behavior/Library

You can create a PLM version with the behavior/libray.

  1. To create a new PLM version with the current library/behavior, you can, in the Existing PLM version(s) in database area:

    1. Click the New PLM Version button

      The New Modelica and PLM version dialog box appears.

    2. Enter a new Modelica version for the PLM version to be created.

      Note: The Modelica version must be unique for a given library to avoid conflict into the PLM database.

    3. Click OK to close the dialog box.

      The new PLM version is displayed from the Existing versions list.

      Warning: This new PLM version is still not created in database. You must close the dialog box using OK to create this new version in database and propagate.


  2. If need be, this new PLM version can be deleted, using the Remove New PLM Version button.

  3. Click OK to validate your creation.

  4. Click PLM Access > Propagate... to create your new version into the PLM database.