For downloading files from Vault 2015R2 I use this code:
Private Sub sDownloadFromVault(oWorkFolderFilename As String, oDocService As DocumentService, oConnection As VDF.Vault.Currency.Connections.Connection)
Dim oFileList As Autodesk.Connectivity.WebServices.File()
Dim oFullFileNames(0) As String
oFullFileNames(0) = "$/Designs" & oWorkFolderFilename
oFileList = oDocService.FindLatestFilesByPaths(oFullFileNames)
Dim filePath As String = oFileList(0).Name
Dim file As New VDF.Vault.Currency.Entities.FileIteration(oConnection, oFileList(0))
Dim settings As New VDF.Vault.Settings.AcquireFilesSettings(oConnection)
settings.AddEntityToAcquire(file)
oConnection.FileManager.AcquireFiles(settings)
End Sub
This does work except for files from moved folders. (The parts/asssemblies are also moved.)
If a file is dowloaded from the moved folder it still has part/assembly references with old folder names.
When I download the files using the Vault Client Prof. 2015R2 the references are set to the new folders.
I did try many options but without succes.
The files are recently uploaded to the Vault using Autoloader 2015R2 and moved (in Working Progress state) using the Vault Client Prof. 2015R2. After the move the files are released. The ipt files are migrated to 2015 format before uploading (because iParts member 2013 files cannot be moved), other files are 2013 or older.
How can I download the files including the new paths?
Hi,
it goes in the right direction but you have to do some additional work to update the file references.
We wrote a Blog about updating File references, it is from Vault 2014 but it should be the same for Vault 2015 R2.
There you can also find a code sample written in C#.
Blog post:
http://blog.coolorange.com/2013/07/15/updating-references-with-vault-2014-api/
hope it helps