Editing projects 5
5.16 Working with libraries
5.16.5 Working with global libraries
5.16.5.1 Global library basics Function
You can store elements in global libraries that you want to use in other projects. You must create global libraries explicitly.
Shared work with global libraries
You can use global libraries together with other users. This requires, however, that all users who want to access to the global library open the library as read-only.
See also
Library basics (Page 174)
5.16.5.2 Creating a new global library Requirement
The "Libraries" task card is displayed.
Procedure
To create a new global library, follow these steps:
1. Click "Create new global library" in the toolbar of the "Global libraries" pane or select the menu command "Options > Global libraries > Create new library".
The "Create new global library" dialog box opens.
2. Specify the name and the storage location for the new global library.
3. Confirm your entries with "Create".
Result
The new global library is generated and inserted into the "Global libraries" pane. A folder with the name of the global library is created in the file system at the storage location of the global library. This actual library file is given the file name extension ".al10".
5.16.5 Working with global libraries 5.16.5.1 Global library basics 5.16.5.2 Creating a new global library
5.16 Working with libraries
5.16.5.3 Opening a global library Requirement
The "Libraries" task card is displayed.
Procedure
To open a global library, follow these steps:
1. Click "Open global library" in the toolbar of the "Global libraries" pane or select the menu command
"Options > Global libraries > Open library".
The "Open global library" dialog box opens.
2. Select the global library you want to open. Library files are identified by the file name extension ".al10".
3. You can also open the library so that it is write-protected. To do this, enable the "Open as read-only"
option in the "Open global library" dialog.
NoteNote the following:
― You cannot enter any additional elements in the global library if you open the library as read-only.
― All users have to open the library as read-only if multiple users want to access the library. This is a requirement for shared access to the library.
4. Click "Open".
The selected global library is opened and inserted into the "Global libraries" pane.
5.16.5.4 Saving a global library
You can save changes made to global libraries not supplied by Siemens at any time. You can save a global library under another name using the "Save as" command.
Requirement
•
The "Libraries" task card is displayed.•
The global library is not write protected.Saving changes
To save a global library, follow these steps:
1. Right-click on the global library you want to save.
2. Select the "Save library" command in the shortcut menu.
Saving a global library under another name
To save a global library under another name, follow these steps:
1. Right-click on the global library you want to rename.
5.16.5.3 Opening a global library 5.16.5.4 Saving a global library
5.16 Working with libraries
2. Select the "Save library as" command in the shortcut menu.
The "Save global library as" dialog opens.
3. Select the storage location and enter the file name.
4. Confirm your entries with "Save".
5.16.5.5 Closing a global library
Global libraries are independent of projects. This means that they are not closed together with your project. You must therefore close global libraries explicitly.
Requirement
The "Libraries" task card is displayed.
Procedure
To close a global library, follow these steps:
1. Right-click on the global library you want to close.
2. Select the "Close library" command in the shortcut menu.
3. If you make changes to the global library, a dialog box opens where you can choose whether you want to save the changes to the global library. Click "Yes" or "No", depending on whether or not you would like to save your changes.
The global library is closed.
5.16.5.6 Deleting a global library
A global library is deleted in the Windows Explorer.
Requirement
The global library has been closed by all users.
Procedure
To delete a global library, follow these steps:
1. Open Windows Explorer.
2. Right-click on the library directory.
3. Select the "Delete" command in the shortcut menu.
4. Confirm the safety prompt with "Yes".
5.16.5.5 Closing a global library 5.16.5.6 Deleting a global library
5.16 Working with libraries
5.16.5.7 Creating folders in the global libraries
You can organize the elements of your custom global libraries to suit your purposes using folders and subfolders.
Requirement
•
The "Libraries" task card is displayed.•
The global library is not write protected.Procedure
To create a new folder in the global library, follow these steps:
1. Right-click on the global library or an existing folder.
2. Select "Add folder" from the shortcut menu.
A new folder is created.
3. Enter a name for the new folder.
5.16.5.8 Adding elements to a global library Prerequisites
•
The "Libraries" task card is displayed.•
The global library is not write protected.Procedure
To add a new element to a global library, follow these steps:
1. Select the element you want to add to the library.
2. Drag the element selected in the "Global libraries" palette in the "Libraries" task card to the book icon of the library to which you want to add the element. Release the left mouse button when a small plus symbol appears below the mouse pointer.
5.16.5.9 Using elements of a global library Requirement
The "Libraries" task card is displayed.
Procedure
To use an element from a global library in your project, follow these steps:
1. Maximize the global library so that you can see the elements of the library.
5.16.5.7 Creating folders in the global libraries 5.16.5.8 Adding elements to a global library 5.16.5.9 Using elements of a global library
5.16 Working with libraries
2. Drag the element from the "Global libraries" pane to the location where you want to use it, for example to the project tree. If you are not permitted to insert it at this location, the mouse pointer changes to a circle with a slash.
If there is already an element with the same name at this location, the "Paste" dialog opens. In this dialog, you can decide whether to replace the existing element or to insert the element from the project library with a duplicate identification (Name_Number).
Note
The "Paste" dialog is not displayed for all elements. The elements for which the dialog is available depends on the installed products.
Or:
1. Open the element view.
2. Drag the element either from the "Elements" pane or the "Parts" pane to the location where you want to use it, for example to the project tree. If you are not permitted to insert it at this location, the mouse pointer changes to a circle with a slash.
If there is already an element with the same name at this location, the "Paste" dialog opens. In this dialog, you can decide whether to replace the existing element or to insert the element from the project library with a duplicate identification (Name_Number).
Note
The "Paste" dialog is not displayed for all elements. The elements for which the dialog is available depends on the installed products.
5.16.5.1
0 Editing elements of a global library
You can use the following editing commands on library elements:
•
CopyEach of these commands can always be executed via the keyboard (Page 132) , menu, and shortcut menu.
Requirement
•
The "Libraries" task card is displayed.5.16.5.10 Editing elements of a global library
5.16 Working with libraries
•
The global library is not write protected.Copying elements
To copy a library element, follow these steps:
1. Right-click on the library element you want to copy.
2. Select the "Copy" command in the shortcut menu.
Cutting elements
To cut a library element, follow these steps:
1. Right-click on the library element you want to cut.
2. Select the "Cut" command in the shortcut menu.
Pasting elements
To paste a library element, follow these steps:
1. Copy or cut a library element.
2. Right-click on the library where you want to paste the element.
3. Select the "Paste" command in the shortcut menu.
Moving elements
To move a library element within a library, follow these steps:
1. Select the library element you want to move.
2. Drag the library element to the library where you want to insert the element.
Note
When you move an element from a library to another library, the element is copied and not moved.
Renaming elements
To rename a library element, follow these steps:
1. Right-click on the element you want to rename.
2. Select the "Rename" command in the shortcut menu.
3. Enter the new name.
Deleting elements
To delete a library element, follow these steps:
1. Right-click on the library element you want to delete.
5.16 Working with libraries
2. Select the "Delete" command in the shortcut menu.
5.16.5.1
1 Removing elements from a global library Prerequisites
•
The "Libraries" task card is displayed.•
The global library is not write protected.Procedure
To remove an element from a global library, follow these steps:
1. Maximize the global library in the "Global libraries" palette so that you can see the elements of the library.
2. Right-click on the element you want to remove.
3. Select the "Delete" command in the context menu.
Or:
1. Open the element view.
2. Right-click on the element you want to remove in the "Elements" palette.
3. Select the "Delete" command in the context menu.
5.16.5.1
2 Using a supplied global library
Depending on the products you install, various global libraries ship with the system.
Requirement
The "Libraries" task card is displayed.
Procedure
To use an element from a supplied global library in your project, follow these steps:
1. Open the relevant library so that you can see the elements of the library.
2. Drag the element from the "Global libraries" pane to the location where you want to use it, for example to the project tree. If you are not permitted to insert it at this location, the mouse pointer changes to a circle with a slash.
Or:
1. Open the element view.
5.16.5.11 Removing elements from a global library 5.16.5.12 Using a supplied global library
5.16 Working with libraries
2. Drag the element from the "Parts" pane to the location where you want to use it, for example to the project tree. If you are not permitted to insert it at this location, the mouse pointer changes to a circle with a slash.
5.16.5.1
3 Filtering the view
To make viewing of extensive libraries more straightforward, you can use filter options to limit the display.
Requirement
The "Libraries" task card is displayed.
Procedure
To filter the view, follow these steps:
1. Open either the "Project library" pane or "Global libraries" pane.
2. In the drop-down list, select the object type for which you want to display the library elements.
Result
Only the library elements that are available for the object type are displayed. You can set the filter to "All" at any time to revert to an unfiltered view.