I have a program that finds files in vault using FindFilesBySearchConditions and then downloads the related DWGs to the user's computer using the code below. This works great 99.7% of the time. However, we've found that if someone makes a change to a document and never opens the DWG file (such as changing the part number property using vault), the DWG file the program downloads won't reflect that change.
How can I fix this? Is there an "update" command or something I can use?
Any help is really appreciated...
Thanks
Public Sub download(file)
Dim fileiter As New VDF.Vault.Currency.Entities.FileIteration(GV.connectionx, file)
Dim settings As New VDF.Vault.Settings.AcquireFilesSettings(GV.connectionx)
settings.LocalPath = New VDF.Currency.FolderPathAbsolute(GV.folderloc)
settings.AddFileToAcquire(fileiter, VDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Download)
Dim results As VDF.Vault.Results.AcquireFilesResults = GV.connectionx.FileManager.AcquireFiles(settings)
End Sub
Hi,
Have you tried setting the VersionGatheringOption to Latest?
settings.OptionsRelationshipGathering.FileRelationshipSettings.VersionGatheringOption = VDF.Vault.Currency.VersionGatheringOption.Latest;
Regards,
Sajith
I added that line of code, and it didn't change. We've found that if you open and check out the file manually through vault and then check it back in, the properties update and the correct file is downloaded in the future.
I found this article describing a related problem, maybe it's related to this?
https://adndevblog.typepad.com/manufacturing/2014/12/acquirefiles-download-not-fixing-references-of-...
Can't find what you're looking for? Ask the community or share your knowledge.