Vault Customization

Posts: 233
Registered: ‎12-15-2011
Message 1 of 2 (138 Views)

File Checkout issue

138 Views, 1 Replies
01-08-2013 11:02 PM


I am currently using Vault Professional 2013 and Customizing using C#. This part deals with File Checkout. Currently am using this part of code to checkout file




mgr.DocumentService.CheckoutFile(fldr.Id, file.Id, CheckoutFileOptions.Master, Environment.MachineName, localPath, "check-out", DownloadOptions.Download, true, out byteArray);


This above piece of code works perfectly and when i open Vault it displays File Checked out successfully.


Problem: Though Vault shows the file checked out, but the problem is am unable to find the file which i checked out.


I gave the file location in D:\Temp, the file is not present in this directory when the above code is executed. But Vault displays file checked out.


Can some one suggest me a way to solve this

Posts: 796
Registered: ‎12-12-2006
Message 2 of 2 (128 Views)

Re: File Checkout issue

01-09-2013 05:45 AM in reply to: amitk_189

DocumentService.CheckoutFile tells the server that the file is now reserved by you.  The function does not put the file on your local hard drive.

If you specify "Download" for the downloadFile parameter, the fileContents will come back with the file bytes.  It's then up to you to save those bytes to disk if you want.

The localPath parameter is a bit confusing.  It's just meta data for the client.  It's only purpose is so that when the client checks in the file, it can verify that it's checking in the same file that was checked out.

Doug Redmond
Software Engineer
Autodesk, Inc.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community