Get
<generic data manager handle> Get <content handle> <file path> <filelist> <getrefs> <append Folders> <wtVersion>
Library Manager
Gets the file associated with the content. The file will not have write permission. By default all the contents referred to by this content will also be retrieved to the same path. If you want to get the reference files to another path, you should pass "getrefs" as false and then get the references from the content and explicitly get them to the desired paths recursively. If "appendFolder" is false, then the files will be retrieved directly under the given path, otherwise, depending on the folder of the content, the corresponding folder will be created. All the files that were copied to the local machine as a result of this operation are returned in "filelist" argument.
generic data manager handle
Generic data manager handle. See DMDirector_OpenWorkspace.
content handle
Content handle. See ContentInterfaceList_at.
file path
File path on the local disk to retrieve the file. If empty ( “”) the file is retrieved to the current workspace.
filelist
hwString pointer. The retrieved file list is returned to this pointer.
getrefs
Get reference file flag
0 – True
1 – False
append Folders
Flag to create the exact folder structure as in the library
0 – True
1 – False
wtVersion
Retrieve the file with the version number appended at the end of the file name
set gdm [DMDirector_OpenWorkspace $director $ws $repoh 0]
set qryhandle [$gdm GetQuery]
set st [$gdm ExecQuery $ qryhandle $clist]
set stringtosearch "MS6000"
set clist [ContentInterfaceList]
set status [$gdm ExecQuery $stringtosearch $clist]
set ci [ContentInterfaceList_at $clist 0]
set flist [hwStringList]
set getstatus [$gdm Get $ci "" $flist 1 1 0]
puts “filpath [hwLMUtils_GetCStrFromHWSPtr [hwStringList_at $flist 0]]”