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: 

ProgressAcquireFilesSettings

1 REPLY 1
SOLVED
Reply
Message 1 of 2
yusufbarsawme
191 Views, 1 Reply

ProgressAcquireFilesSettings

Hi,

 

My code below. I am trying to checkout file/s  which is successful. However, I want the "system" to ask the user if he/she wants to check out before actually performing the action, i.e display the prompt: "Files are not checked out. Do you want to check them out.

How can I achieve this? I know I can do this by myself and checking the properties of the files, but I was instructed to use the ProgressAcquireFilesSettings and I thought there were some help in the API. Thanks...

 

IntPtr parent = new IntPtr();
VDF.Vault.Forms.Settings.ProgressAcquireFilesSettings settings = new VDF.Vault.Forms.Settings.ProgressAcquireFilesSettings(_mainLogic.Conn, parent, Constants.CHECKOUTFILE);

settings.DefaultAcquisitionOption = Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout;

settings.OptionsResolution.ForceOverwrite = false;
settings.AddEntityToAcquire(files);
VDF.Vault.Forms.Library.AcquireFiles(settings);

1 REPLY 1
Message 2 of 2
smithmat
in reply to: yusufbarsawme

No, there isn't anything in the SDK that does that for you.  

 

- Matt

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

Post to forums  

Autodesk Design & Make Report