<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Check-In files by API in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3134336#M12548</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to create an addin to make my life a bit easier. Addin will generate PDF and AutocadDWG files from selected DWG files. One of the features is to check-in files automatically at the end.&lt;/P&gt;&lt;P&gt;My question is - how to to this properly to not make mess inside the Vault.&lt;/P&gt;&lt;P&gt;On the method ChekinFile there are lot o fields to fill:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-File.html"&gt;File&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;CheckinFile&amp;nbsp;(&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;&lt;EM&gt;fileMasterId&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;&lt;EM&gt;comment&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;keepCheckedOut&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DateTime&amp;nbsp;&lt;EM&gt;lastWrite&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;dependFileIds&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;dependSources&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;attachFileIds&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;attachSources&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-BOM.html"&gt;BOM&lt;/A&gt;&amp;nbsp;&lt;EM&gt;bom&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;copyBom&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;&lt;EM&gt;newFileName&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-FileClassification.html"&gt;FileClassification&lt;/A&gt;&amp;nbsp;&lt;EM&gt;fileClassification&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;hidden&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Byte&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;fileContents&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;);&lt;/STRONG&gt; ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what I should be aware of? How to put a correct file associations to have everything correct in Vault Explorer. And do I have to create DWF file by my self and upload it to?&lt;BR /&gt;&lt;BR /&gt;I will appreciate any help.﻿&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2011 12:37:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-24T12:37:41Z</dc:date>
    <item>
      <title>Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3134336#M12548</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to create an addin to make my life a bit easier. Addin will generate PDF and AutocadDWG files from selected DWG files. One of the features is to check-in files automatically at the end.&lt;/P&gt;&lt;P&gt;My question is - how to to this properly to not make mess inside the Vault.&lt;/P&gt;&lt;P&gt;On the method ChekinFile there are lot o fields to fill:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-File.html"&gt;File&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;CheckinFile&amp;nbsp;(&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;&lt;EM&gt;fileMasterId&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;&lt;EM&gt;comment&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;keepCheckedOut&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DateTime&amp;nbsp;&lt;EM&gt;lastWrite&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;dependFileIds&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;dependSources&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Long&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;attachFileIds&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;attachSources&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-BOM.html"&gt;BOM&lt;/A&gt;&amp;nbsp;&lt;EM&gt;bom&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;copyBom&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;String&amp;nbsp;&lt;EM&gt;newFileName&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/Vault-Document%20Service-FileClassification.html"&gt;FileClassification&lt;/A&gt;&amp;nbsp;&lt;EM&gt;fileClassification&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Boolean&amp;nbsp;&lt;EM&gt;hidden&lt;/EM&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;System.Byte&amp;nbsp;[]&amp;nbsp;&lt;EM&gt;fileContents&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;);&lt;/STRONG&gt; ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what I should be aware of? How to put a correct file associations to have everything correct in Vault Explorer. And do I have to create DWF file by my self and upload it to?&lt;BR /&gt;&lt;BR /&gt;I will appreciate any help.﻿&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 12:37:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3134336#M12548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3135246#M12549</link>
      <description>&lt;P&gt;This is a pretty complicated topic.&amp;nbsp; The official recommendation is to have the AutoCAD plug-in or Autoloader add the files to Vault.&amp;nbsp; If you want to add the files yourself I suggest watching the "Intermediate Vault programming﻿" webcast from ADN's &lt;A href="http://www.adskconsulting.com/adn/cs/api_course_webcast_archive.php" target="_self"&gt;webcast archive&lt;/A&gt;.&amp;nbsp; There are a few slides that specifically address Add/Checkin File.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 21:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3135246#M12549</guid>
      <dc:creator>Redmond.D</dc:creator>
      <dc:date>2011-08-24T21:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3135284#M12550</link>
      <description>&lt;P&gt;Thank you Doug. But there is just short description of the method without any example. And example or some kind of algorithm is that what I looking for. I know that it could be quite complicated task but maybe someone have some experience with that.&lt;BR /&gt;&lt;BR /&gt;I forgot to mention that I'm using﻿ Autodesk Inventor. And I have to deal with relations for parts and assemblies files related to drawings.﻿&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 22:05:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3135284#M12550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T22:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3137414#M12551</link>
      <description>&lt;P&gt;It's a very big algorithm for adding Inventor files.&amp;nbsp; If you are an inventor plug-in, I recommend invoking the check-in command from the Vault plug-in.&amp;nbsp; It will pop up the check-in dialog, but it saves you from having to code in all the Inventor data (file dependencies, BOM data, ref Id, etc..).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to try and code this yourself, I suggest posting this question to the Autodesk Developer Network.&amp;nbsp; This topic is probably too complex for discussion group postings.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 13:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3137414#M12551</guid>
      <dc:creator>Redmond.D</dc:creator>
      <dc:date>2011-08-26T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3244010#M12552</link>
      <description>&lt;P&gt;Hi Doug. I gave up for a while with this task. Right now I want to try it once more time but your way. Could you please give me some exaple how I can invoke Check-In comand form vault add-ini? It could be helpfull not only for me if you could do that. Or mybe some one else have some expirience with it?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 06:17:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3244010#M12552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-30T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3250122#M12553</link>
      <description>&lt;P&gt;Unfortunately, I don't have an example of launching another Inventor command from within an Inventor plug-in.&amp;nbsp; You might want to try the Inventor customization discussion group.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 15:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3250122#M12553</guid>
      <dc:creator>Redmond.D</dc:creator>
      <dc:date>2011-12-05T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3253938#M12554</link>
      <description>&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought I'd jump in with a question related to this thread.&amp;nbsp; Example or not, is it in deed possible to invoke an existing Inventor command using the API (in my case copy), and if so, what are the API function(s) that do this.&amp;nbsp; In my case I'd like to perform a copy function to create a new file based on a template stored in Vault.&amp;nbsp; Tx.&amp;nbsp; Dan&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 17:24:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/3253938#M12554</guid>
      <dc:creator>dlconsulting</dc:creator>
      <dc:date>2011-12-07T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6212038#M12555</link>
      <description>&lt;P&gt;I'm trying to do this with a Navisworks fileset (.nwf)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is related to the &lt;STRONG&gt;CheckinFile&lt;/STRONG&gt; method:&lt;/P&gt;&lt;P&gt;What needs to be entered in &lt;STRONG&gt;FileAssocParam&lt;/STRONG&gt; to maintain all the file relationships in Vault?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm using (C#):&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;connection.FileManager.CheckinFile(oFileIteration, &lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"API check-in test"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;false&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;FileAssocParam&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;[] { }, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;false&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, 0, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;false&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of my files exist already on Vault (i.e. I'm not checking them in for the fisrt time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can&amp;nbsp;get the&amp;nbsp;.nwf file checked back in, but using the above line of code it does not retain the file relationships for the dependant models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers on how to do this?&amp;nbsp; Thx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 22:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6212038#M12555</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-11T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6212043#M12556</link>
      <description>If I am right you can specify 'null' for the FileAssocs argument to retain existing references.&lt;BR /&gt;&lt;BR /&gt;Sent from my mobile device.&lt;BR /&gt;&lt;BR /&gt;Met vriendelijke groet | Kind Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pim Saarloos&lt;BR /&gt;Cadac Group MFG BV&lt;BR /&gt;Product Manager&lt;BR /&gt;&lt;BR /&gt;+31 88 9322 439&lt;BR /&gt;psaarloos@cadac.com&lt;BR /&gt;&lt;A href="http://www.cadac.com" target="_blank"&gt;www.cadac.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Blankenstein 134&lt;BR /&gt;7943 PE Meppel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[&lt;A href="http://info.cadac.com/email/plm-1.png]" target="_blank"&gt;http://info.cadac.com/email/plm-1.png]&lt;/A&gt; [&lt;A href="http://info.cadac.com/email/plm-2.png]" target="_blank"&gt;http://info.cadac.com/email/plm-2.png]&lt;/A&gt;&lt;BR /&gt;[&lt;A href="http://info.cadac.com/email/plm-3.png]" target="_blank"&gt;http://info.cadac.com/email/plm-3.png]&lt;/A&gt; [&lt;A href="http://info.cadac.com/email/plm-4.png]" target="_blank"&gt;http://info.cadac.com/email/plm-4.png]&lt;/A&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:06:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6212043#M12556</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-11T23:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214587#M12557</link>
      <description>&lt;DIV class="username_area"&gt;&lt;SPAN&gt;Hi psaarloos, thank you for your quick reply.&amp;nbsp; I tried using &lt;STRONG&gt;null&lt;/STRONG&gt; but it still breaks the file relationships when checking back into Vault.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;I tested this for both an Inventor assembly (.iam) and Navisworks fileset (.nwf).&amp;nbsp; In both cases all dependant files reside on Vault already, nothing new being checked in.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Mar 2016 15:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214587#M12557</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-14T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214671#M12558</link>
      <description>&lt;P&gt;Then you have to use something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the existing references of the file in Vault&lt;/LI&gt;&lt;LI&gt;Check out the file&lt;/LI&gt;&lt;LI&gt;… do stuff ..&lt;/LI&gt;&lt;LI&gt;Check in the file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get References&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;FileAssocLite[] fileAssocArray = manager.DocumentService.GetFileAssociationLitesByIds(new long[] { file.Id }, FileAssocAlg.Actual, FileAssociationTypeEnum.None, false, FileAssociationTypeEnum.All, false, true, false, true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Check Out File&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Autodesk.DataManagement.Client.Framework.Vault.Currency.Entities.FileIteration fileIteration = new Autodesk.DataManagement.Client.Framework.Vault.Currency.Entities.FileIteration(manager.Connection, file);

 

Autodesk.DataManagement.Client.Framework.Vault.Settings.AcquireFilesSettings settings = new Autodesk.DataManagement.Client.Framework.Vault.Settings.AcquireFilesSettings(manager.Connection, false);

settings.DefaultAcquisitionOption = Autodesk.DataManagement.Client.Framework.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout;

settings.AddFileToAcquire(fileIteration, Autodesk.DataManagement.Client.Framework.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout);

Autodesk.DataManagement.Client.Framework.Vault.Results.AcquireFilesResults results = manager.Connection.FileManager.AcquireFiles(settings);

 

Autodesk.DataManagement.Client.Framework.Vault.Results.FileAcquisitionResult res in results.FileResults[0]

fileIteration = res.NewFileIteration;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;// do stuff //&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Check In the file&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;List&amp;lt;FileAssocParam&amp;gt; pars = new List&amp;lt;FileAssocParam&amp;gt;();

                if (fileAssocArray != null)
                {
                    foreach (FileAssocLite assoc in fileAssocArray)
                    {
                        FileAssocParam par = new FileAssocParam();
                        par.CldFileId = assoc.CldFileId;
                        par.RefId = assoc.RefId;
                        par.Source = assoc.Source;
                        par.Typ = assoc.Typ;
                        par.ExpectedVaultPath = assoc.ExpectedVaultPath;

                        pars.Add(par);
                    }
                }

                manager.Connection.FileManager.CheckinFile(fileIteration, comment, checkedOut, DateTime.Now, pars.ToArray(), null, true, fileIteration.EntityName, fileIteration.FileClassification, fileIteration.IsHidden, null);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps J. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 16:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214671#M12558</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-14T16:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214828#M12559</link>
      <description>&lt;P&gt;Wow, thank you!&amp;nbsp; This is getting me in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to test it out, but I'm getting some error feedback at the two lines of code at the end of your &lt;STRONG&gt;Check Out File&lt;/STRONG&gt; block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="2016-03-14_12-15-47.png" alt="2016-03-14_12-15-47.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/224623i9290FEB3AABE8598/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a ";" at the end of the line.&amp;nbsp; Can you spot something that might clear these messages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 17:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214828#M12559</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-14T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214845#M12560</link>
      <description>Sorry, my mistake. Change 'in' in '=' (I was looping through the results previously, but there is only one result)</description>
      <pubDate>Mon, 14 Mar 2016 17:28:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214845#M12560</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-14T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214873#M12561</link>
      <description>&lt;P&gt;Ok, I'm so close now... I fixed it up, but I still get the message shown in the attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Thx for your patience, I'm very new to all of this!)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 17:38:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6214873#M12561</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-14T17:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215125#M12562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this line instead..That should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Autodesk.DataManagement.Client.Framework.Vault.Results.FileAcquisitionResult res = results.FileResults.FirstOrDefault();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pim&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 19:41:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215125#M12562</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-14T19:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215342#M12563</link>
      <description>&lt;P&gt;Thx Pim!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm noticing as I test this out.&amp;nbsp; For now I'm just trying to get the code for &lt;EM&gt;check-out, then check-in + retain file dependants&lt;/EM&gt; working properly. So there are no modifications to the parent file yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything seems to be working well with the file dependants, except that after the parent file is checked back in, it does not increment the Vault version.&amp;nbsp; It behaves the same as an undo check-out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I enter &lt;STRONG&gt;true&lt;/STRONG&gt; for the &lt;EM&gt;keep checked out&lt;/EM&gt; parameter (in the &lt;STRONG&gt;CheckinFile&lt;/STRONG&gt; method), the Vault file version is incremented as it should.&amp;nbsp; But the file is still checked out of course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I notice that my string for the &lt;EM&gt;comments&lt;/EM&gt; parameter&amp;nbsp;is not showing up in Vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas as to what might be going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 21:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215342#M12563</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-14T21:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215371#M12564</link>
      <description>&lt;P&gt;Probably Vault is seeing there are no modifications to the checked in file and therefore basically rolls back the version. The reason you see a version increase when setting the 'Keep Checked Out' option to true is because Vault reserves/creates the new file version upon check out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try to modify the FileAssocs array. Maybe Vault is seeing the file being checked in as a new file then. I assume you have a test Vault to play with, so setting a different source value won't break anything. Check the Source property for the existing file assocations before. They are probably all empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change for example this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;par.Source = assoc.Source;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;par.Source = "MyTest"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:04:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6215371#M12564</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-14T22:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6216593#M12565</link>
      <description>&lt;P&gt;Ok, here are the &lt;STRONG&gt;assoc.Source&lt;/STRONG&gt; properties for the three dependent files of the Navisworks fileset I am testing:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each returns the value NAVISWORKS:&lt;/P&gt;&lt;P&gt;&lt;IMG title="2016-03-15_9-22-04 FileAssocparam loop.png" alt="2016-03-15_9-22-04 FileAssocparam loop.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/224816iB41D5E07CBCA5BDC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my application, I've added the part where after checking out the fileset, it&amp;nbsp;is opened in Navisworks, and saved.&amp;nbsp; This way the file has been modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After &lt;STRONG&gt;CheckinFile&lt;/STRONG&gt;, I notice that the fileset remians at version 1 (not incremented), but Vault detects that the local version has been modified:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="2016-03-15_9-29-29 After check-in.png" alt="2016-03-15_9-29-29 After check-in.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/224818iBA518AC944B1F23D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have a test Vault to play around with, so I'm reluctant to change the &lt;STRONG&gt;assoc.Source&lt;/STRONG&gt; settings just at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm so close now Pim, everything else is working exactly as I need.&amp;nbsp; Couldn't have gotten this far without your guidance!&amp;nbsp; Thx again for your support!&amp;nbsp; Any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:56:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6216593#M12565</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-15T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6216977#M12566</link>
      <description>&lt;P&gt;Ha, sorry Pim...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the code for the&amp;nbsp;&lt;STRONG&gt;List&amp;lt;FileAssocParam&amp;gt;&lt;/STRONG&gt; loop in the wrong location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I re-located it to after having made the file modifications (&lt;EM&gt;after&lt;/EM&gt;&amp;nbsp; &lt;STRONG&gt;Step 3 ...do stuff...&lt;/STRONG&gt; as you outlined above in your previous reply).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is working like a charm now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awesome support Pim, thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6216977#M12566</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-15T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check-In files by API</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6217402#M12567</link>
      <description>&lt;P&gt;Glad to hear it's working! Just out of curiosity; what are you trying to achieve in the process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pim&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:17:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/check-in-files-by-api/m-p/6217402#M12567</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2016-03-15T21:17:03Z</dc:date>
    </item>
  </channel>
</rss>

