Using the sws add Command
This section discusses how the sws add command works regardless of
the data management system that stores the data. Subsequent sections provide specific
information for each of the supported data management systems.
The sws add command adds the specified item content and structure into the
workspace and updates the item and its structure, including other referenced items into the
design workspace. All the fetched connected items are placed into workspace root folders
that are peers of each other and are subfolders of the design workspace root folder.
You can run the sws add command repeatedly to add and update different top-level Items into the workspace.
The command follows this sequence:
- Determines the local workspace structure.
- Fetches the structure for the item specified from the server.
- Checks for conflicts within the structure and with other items in your workspace.
- If there are no conflicts, fetches the items in the structure, updating the file or folder contents for the item, adding new items, and removing items.
- Fetches items into the cache, as appropriate based on permissions and needs, and creates the symbolic links required to support caching. For more information on caching, see Semiconductor Repository Caching.
If individual items or objects within the item fail, the operation continues and at the end provides a list of the failures. You can run the sws add command as often as required. For items already fetched into the workspace, the add command behaves like sws update. Any new items are fetched and, if there are any related items that have been removed from the structure, they are removed from the workspace.
If an item already exists in the workspace, and you specify the resource url of that item
in the sws add command, the item is marked as explicitly added. When an
item is explicitly added, it is not removed by workspace updates, even if it is not part of
the workspace structure.