Getting an Element

Getting a version of an element from the Version Bank makes a copy of the latest version without locking the element. When you get a file, it is not locked under your User ID and another user can check out the file and modify it, unless you have previously checked out the file. In such a scenario, it silently discards any changes you have made since checking out.

There are three Get commands in Version Control:

Perform the following to get the latest version or a specific version of the element:

  1. Create and identify a workspace.

  2. Select the elements in the Solution Explorer or Class View.

  3. Select File > Source Control and then select

    • Get <version file name> menu item, or Get from the context menu to get the latest version of an element. The latest version of the selected element is copied to the workspace from Source Control.

      Note: If you select more than one element, the version file name does not appear in the Menu.

    • Get Specific Version or select Get Specific Version from the context menu to get a specific version of the selected element.

Perform the following to get the latest version of all the elements in a model recursively:

  1. Create and identify a workspace.

  2. Select the Model in the Solution Explorer.

  3. Select the File, Source Control, Get Latest Version (Recursive) menu item, or Get Latest Version (Recursive) from the context menu.

 Warning

This discards all changes made to any checked out element since the checkout.

The workspace and the database get synchronized automatically and the latest version of the selected model is copied to the workspace from Source Control.

If you do not want to synchronize the workspace and the database automatically, perform the following:

  1. In the Solution Explorer window, right-click the project and select Unload Project.

  2. Right-click the project, and then select Edit <AB Suite Project Name>.smproj.

  3. In the <AB Suite Project Name>.smproj code editor set the <SccMaintainFiles> and <SccMaintainModel> tags to False.

Or

  1. Open the <AB Suite Project Name>.smproj file in text editor, such as Notepad.

  2. Set the <SccMaintainFiles> and <SccMaintainModel> tags to False.

    Note: If you set the <SccMaintainFiles> to True and <SccMaintainModel> tags to False , the File Changes Detected window appears when you select Get Latest Version (Recursive) option. The File Changes Detected window displays the file names that are added, modified, or deleted. You can get the latest version of only the files that you want by selecting the check box next to the file names.