Importing a Library From a Modelica File

A Modelica file contains the description of one or several libraries. You can import Modelica files that are encrypted/scrambled (.moe file) or not encrypted (.mo file) with their associated external resources (.html, .png, .mos...).

When a Modelica file contains several libraries, importing this file will create several dynamic behavior library references.

Note:

  • The Import Modelica File command checks if there is an existing library with the same name in the PLM database and allows you to create a new PLM version of the existing library. However, this command does not manage the Modelica version.
  • Encrypted models are imported as read-only files. You can select the top-level node to perform a virtual execution, but you cannot display the Modelica text nor the components from the diagram layer.

  1. Select Import Modelica File from the Authoring toolbar.

    The Modelica File Import dialog box appears.

  2. From the Look in: field, browse your computer to find the convenient Modelica library.

  3. Click Open to close the dialog box and import your Modelica file.

    1. If a library with the same name already exists in the PLM database, the Library Version Management dialog box appears.



    2. From the Existing Library(ies) area, select the existing library to be replaced.

      Important:
      • If the imported library already exists with the same Modelica version, the imported library will replace the existing library.
      • If the imported library exists with another Modelica version, select an existing library to create a new PLM version with the imported library.

    3. Click OK to close the dialog box and import your Modelica file.

    A message appears to let you know the result of your import.

    The Modelica file is imported in your session as a library reference. Its packages appear from the Package Browser. External files such as .htm, .png or .mos are also imported.

  4. Select PLM Access > Propagate... to save this new library with its behavior content.

    Warning: The Modelica library is imported into your session. You must propagate the dynamic behavior library reference to store these data into the ENOVIA database.