Create a Scripting Library

You can create a new scripts library in two ways: either construct the library manually or use the customization feature to automatically create the required library structure.

Method 1: Create a Customized Scripting Library

  1. In System Browser, select Project > System Settings > Libraries > L1-Headquarter > Global > Scripting.
  1. In the Library Configurator tab, click Customize the entire library to a lower level .
  • The structure of the Headquarter Scripting library is reproduced at the allowed customization level. This includes a Scripts block into which you can now import scripts.

Method 2: Manually Create a Scripting Library

  1. Select the library level where you want to create the scripting library. For example:
    Project > System Settings > Libraries > L4-Project > [folder] > […] > [scripting library]
    .
  1. In the Library Configurator tab, click New and select New Library Object.
  • The library object workspace displays.
  1. In the General Settings expander, specify the following fields:
  • Discipline: Enter the name of the folder (for example, Global) under which the new library will be placed. If the folder does not exist yet it will be created.
  • System
  • (Optional) Level tag (available only for L4-Project library objects)
  • (Optional) Version
  • (Optional) Date
  • (Optional) Languages, Dependences
  1. Click Save .
  1. In the New Object dialog box, enter a name and description.
  1. Click OK.
  • The new library is added to System Browser.
  1. Select the new scripting library object.
  1. In the Library Configurator tab, click New and select New Scripts Library Block.
    NOTE: For each library you can add only one library block of this type.
  1. (Optional) Enter values into the following fields: Version, Revision, Date, Notes.
  1. Click Save .
  1. In the New Object dialog box, modify the name and description.
  1. Click OK.
  • The scripts block is added to the library. You can now import scripts into it.