Check-Out
AutoCheckOut allows you to check-out components using the command line. To do this, enter the following command:
"C:\Program Files\vdogClient\VDogAutoCheckOut.exe" /rd:{ClientArchive} "/dirR:<Relative path>" /Account:<User> /Password:<Password> [/domain:<Domain>] [/WithBackups:<Y/N>] [/NumberOfArchives:<Number>] |
You can also choose the component you want to Check-Out by entering the component ID instead of it relative path. To do this, you must enter the following command:
"C:\Program Files\vdogClient\VDogAutoCheckOut.exe" /rd:<ClientArchive> "/CID:<Component ID<" /Account:<User> /Password:<Password> [/domain:<Domain>] [/WithBackups:<Y/N>] [/NumberOfArchives:<Number>] |
AutoCheckOut can also be used to automatically check-out the current version of a component before each login.
The parameters and values required for the command line call are listed in the table below.
When performing a Check-Out using the command line, you will not be notified if local changes will be overwritten.
Parameter | Description |
---|---|
/rd:<ClientArchive> | Fully qualified path to the client archive. |
/dirR:<Relative path> |
Relative path of the component or directory to be checked out. If no value is specified, all available components will be checked out. The user must have at least read access to the path. It can be specified as an alternative to/CID:. One of the two parameters must be passed. If both are passed, /dirR: will be ignored. |
/CID:<component ID> |
Component ID of the component to be checked out The user must have at least read access to the component. Can be specified as an alternative to /dirR:. One of the two parameters must be passed. If both are passed, /dirR: is ignored. |
/account:<User> |
Name of the user performing the Check-Out. |
/domain:<Domain> |
Domain of the user (optional). |
/password:<Password> |
Password of the user. |
/WithBackups:<Y/N> |
Specifies whether backups should also be checked out (optional). Possible values: Y: Backups are also checked out. N: No backups are checked out. The default value is N. |
/NumberOfArchives: <Number> |
Specifies how many archives should be checked out (optional). The default value is 0 (all archives). |
/Version:<Version number> |
Specifies which version should be checked out (optional). The default value is the number of the current version. |
/LockState:<LockState> |
Specification of the status with which the Check-Out will be executed. Possible values: /LockState:UnderDevelopment: The status Under development is set during Check-Out. /LockState:LockForOtherUsers: The status Locked by user is set during Check-Out. The parameter is optional. If it is not specified, no lock state will be set. |
/WithStdLibs:<Y/N> |
Specifies whether the linked standard libraries are also checked out during Check-Out. Possible values: Y: The linked standard libraries have also been checked out. N: The linked standard libraries have not been checked out. The default value is N. |
/comment:{comment} |
Comment that is displayed in the CheckIn-CheckOut log . Entry is optional. The default value is an empty string. |
Examples
Command line call
"C:\Program Files\vdogClient\VDogAutoCheckOut.exe" /rd:d:\vdClientArchive "/dirR:\Hall 1\Plant 1\Area 1\SimaticS7" /Account:User /Password:<Password> /WithBackups:N /NumberOfArchives:0 |
Automatic Check-Out of a component upon login:
Bat file with the following content: REM Check-Out procedure "C:\Program Files\vdogClient\VDogAutoCheckOut.exe" /rd:d:\vdClientArchive "/dirR:\Hall 1\Plant 1\Area 1\SimaticS7" /Account:User /Password:<Password>/WithBackups:N /NumberOfArchives:0
REM Open the UserClient "C:\Program Files\vdogClient\VDogClient.exe" /rd:d:\vdClientArchive /Account:User /Password:<Password> |
Automatic Check-Out of all components upon login:
Bat file with the following content: REM Check-Out procedure "C:\Program Files\vdogClient\VDogAutoCheckOut.exe" /rd:d:\vdClientArchive /dirR: /Account:User/Password:<Password> /WithBackups:Y /NumberOfArchives:1
REM Open the UserClient C:\Program Files\vdogClient\VDogClient.exe /rd:d:\vdClientArchive /Account:User /Password:<Password> |
Return values
Argument | Description |
---|---|
0 | No errors occurred. At least one component was checked out. |
1 | No Check-Out could be carried out or at least one Check-Out returned an error. |
2 | No components were found that could be checked out (for example, because the user did not have the required rights). |
1000 | Login error. |
Related topics |
---|
UserClient -> Check-Out |