User-defined library

<< Click to Display Table of Contents >>

Navigation:  Project > Screens >

User-defined library

Previous pageReturn to chapter overviewNext page

Create user-defined library

You can create your own library by clicking right button on User-defined section of the Add graphical object window and choosing New library menu item:

 

mylibrary

 

You can add graphical object in your library by clicking right button on the object on Canvas or Screen window and choosing Add to Library->You library menu item:

 

addtolibrary

You can Select, Rename or Delete created object in your library by clicking right button on it and selecting correspondent menu item.

 

Rename user-defined library

To rename library right click on the library you want to rename and choose Rename library menu item.

 

Delete user-defined library

To delete library right click on the library you want to delete and choose Delete library menu item.

 

Export user-defined library

To export library:

1. Right click on the library you want to export and choose Export library menu item.

2. Now select the location and click the button Save (TeslaSCADA library extension .tsp2lib).

Library with all objects will be exported in the the file. You can use this file to import library with all objects in a new project.

If you want to export your library with all objects and scripts that used these objects and also with screens that called from this object (for example button that call screen or popup screen) or with screens that called from the scripts bind to the object, you need to use Export library plus menu item. In this case in exported file you'll have object, scripts and screens.

 

Import user-defined library

To import library:

1. Right click on the User-defined section and choose Import library menu item.

2. Now select the library file and click Open (TeslaSCADA library extension .tsp2lib).

If exported files contains only objects (you use Export library menu item during exporting library) only library with objects are created in the Add graphical object. If exported file also contains script and/or screens (you use Export library plus menu item during exporting library) these scripts and screens are added in the project and you can see them in the Project window.

 

Below you can find example how to create complex object with script and screen are bound to it. And how to add this object to the user-defined library, how to export this library and how to import it in the new project.