The Problem:
Through the API, you download a file and place it in the local workspace. But when you open up Vault Explorer, it says that the file has been edited out of turn.
The Solution:
After downloading the file, you need to set it to read-only (unless you have it checked out to you) and you need to set the create date of the local file to match the create date of the File object.
C#:
public void DownloadFile(File file, string localPath) |
VB:
Public Sub DownloadFile(ByVal file As File, ByVal localPath As String) |
Technical Details:
The problem isn't that the file was downloaded wrong. The problem is that Vault Explorer expects things in a certain way. If you want to "play nice" with the Autodesk clients, then you need to perform a few extra steps.
If you liked this article, you might also like:
The
Return
of the Lock Icon