UndoCheckOut issues

UndoCheckOut issues

Anonymous
Not applicable
505 Views
1 Reply
Message 1 of 2

UndoCheckOut issues

Anonymous
Not applicable

Hi,

 

I have a file in Vault, status readonly.

 

Checking out the file via API "AcquireFiles" (checkout in settings) method, the file is now checked out and has status editable (not readonly).

 

I do undo check out with method:

 

 connection.FileManager.UndoCheckoutFile(file);

 

3 issues regarding Undo check out:

 

1. If I edit the checked out file and save it and then do a undo checkout I want the workflow to prompt that I am about to loose changes, how do I do that?

2. How do I set "Replace working copies" programmatially?

3. When I have performed the undo check out action, I now expect my file to have been replaced with the latest from Vault and also status of file is readonly. None of this occurs.

 

Appreciate your help

 

 

0 Likes
Accepted solutions (1)
506 Views
1 Reply
Reply (1)
Message 2 of 2

smithmat
Autodesk
Autodesk
Accepted solution

Regarding,

1. I don't think there is anything in the SDK that does that for you.  You would need to display that dialog yourself.

2 & 3: This is not done automatically from the SDK.  The undo checkout is simply undoing the checkout on the server--it does not do anything with the client side workspace.  You will have to do this manually.  You can replace the files in your workspace using the AcquireFiles method after the undo checkout.

 

- Matt

 

0 Likes