Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Acquire several versions of same file

1 REPLY 1
SOLVED
Reply
Message 1 of 2
FRFR1426
350 Views, 1 Reply

Acquire several versions of same file

Is it possible to acquire several versions of the same file in one call to FileManager.AcquireFiles?

 

I'm using a different path for each version by using the third argument of AddFileToAcquire:

 

settings.AddFileToAcquire(fileVer11, AcquireFilesSettings.AcquisitionOption.Download, path11);
settings.AddFileToAcquire(fileVer8, AcquireFilesSettings.AcquisitionOption.Download, path8);
settings.AddFileToAcquire(fileVer5, AcquireFilesSettings.AcquisitionOption.Download, path5);

 With that, I've only one file (path5) and if I look to the results of AcquireFiles, it's the 11th version that is downloaded.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Tags (1)
1 REPLY 1
Message 2 of 2
smithmat
in reply to: FRFR1426

No, it is not possible.  When there are multiple versions of the same file, the latest file is chosen.  Unfortunately, you'll have to do mutliple AcquireFiles to get different versions.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report