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
- In System Browser, select Project > System Settings > Libraries > L1-Headquarter > Global > Scripting.
- 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
- Select the library level where you want to create the scripting library. For example:
Project > System Settings > Libraries > L4-Project > [folder] > […] > [scripting library].
- In the Library Configurator tab, click New and select New Library Object.
- The library object workspace displays.
- 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
- Click Save .
- In the New Object dialog box, enter a name and description.
- Click OK.
- The new library is added to System Browser.
- Select the new scripting library object.
- 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.
- (Optional) Enter values into the following fields: Version, Revision, Date, Notes.
- Click Save .
- In the New Object dialog box, modify the name and description.
- Click OK.
- The scripts block is added to the library. You can now import scripts into it.