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: 

Check in file/s with possibility to type a comment

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

Check in file/s with possibility to type a comment

Hello,

 

I can't find the help in the SDK. 2 issues regarding when checking files.

 

1. Is it possible to check in a list of Files with one call? The "FileManager.CheckInFile" method does not take a list of files as inparameter...

 

2. How do I prompt the user to be able to write a "checkin comment" before checking in?

 

Here is my code:

 


List<ACW.FileAssocParam> assocParamlist = new List<ACW.FileAssocParam>();

foreach (ACW.FileAssocLite assoclite in assocs)
{
ACW.FileAssocParam assocparam = new ACW.FileAssocParam();
assocparam.CldFileId = assoclite.CldFileId;
assocparam.ExpectedVaultPath = assoclite.ExpectedVaultPath;
assocparam.RefId = assoclite.RefId;
assocparam.Typ = assoclite.Typ;

assocParamlist.Add(assocparam);
}

ACW.FileAssocParam[] assocParamArray = assocParamlist.ToArray();
_mainLogic.Conn.FileManager.CheckinFile(file, "checking in", false, assocParamArray, null, false, null, ACW.FileClassification.None, false);

 

I want something similar to the same functionality when checking in from Vault Client.

 

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

1.  No.  Check-in is one file at a time.  

2. You'll have to prompt the user on your own.  There is currently know feature in the SDK that prompts the user for you (i.e. the SDK doesn't provide the dialog from Vault Explorer.

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

Post to forums  

Autodesk Design & Make Report