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.
  2. In the Library Configurator tab, click Customize the entire library to a lower level .
  1. 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]
    .
  2. In the Library Configurator tab, click New and select New Library Object.
  3. The library object workspace displays.
  4. 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
  5. Click Save .
  6. In the New Object dialog box, enter a name and description.
  7. Click OK.
  8. The new library is added to System Browser.
  9. Select the new scripting library object.
  10. 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.
  11. (Optional) Enter values into the following fields: Version, Revision, Date, Notes.
  12. Click Save .
  13. In the New Object dialog box, modify the name and description.
  14. Click OK.
  1. The scripts block is added to the library. You can now import scripts into it.