Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you use a scripting language in your model, you may need to call some external libraries to do some specific tasks. Therefore, you need to must add the external libraries to your project before executing it.

Note
titleNote

Only *.jar files are supported as the external libraries.

To add an external library to a project  

...

  1. Click Options > Project on On the main menu to open the Project Options dialog.
  2. Select General project options on the left-hand side of the dialog and select External Libraries from the Simulation Script Engine option.

    Project Options DialogImage Removed
    The Project Options dialog.
  3. Click the Image Removed button of External Libraries to open the Select Files and/or Directories dialog.

    Selecting an External LibraryImage Removed
    Selecting an External Library.
  4. Click the Add button, to open the Open file dialog.

    Project optionsImage Removed
    Project options.
  5. , click Options and select Project. The Project Options dialog opens.
  6. On the left pane, click General > Simulation>External Libraries.
  7. Click Image Added to open the Select Files and/or Directories dialog.

    Image Added

  8. In the Select Files and/or Directories dialog, click Add.

    Image Added

  9. In the Open dialog, select the required file and click Open

    Browse the file that you want to add to your project and click the Open button

    . The path filename will be added to the Select Files and/

    or Directories

    or Directories dialog.

    Image Added

    Note

    Once you click Open, a Use Path Variables dialog may appear. The dialog suggests an alternative file path name. Clear the checkbox if you wish not to see the dialog in the future. To learn more, refer to Path variables.


  10. Confirm the path file name in the Select Files and/or Directories dialog and click OK.
    Note

    Once you click OK, a Use Path Variables dialog may appear. The dialog suggests an alternative file path name. Clear the checkbox if you wish not to see the dialog in the future. To learn more, refer to Path variables.

  11. Confirm the path file name in the Project Options dialog and click OK.