<?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 Re: Checking in and out a file in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7227605#M11104</link>
    <description>&lt;P&gt;The error indicates that the application cannot find the &lt;EM&gt;Autodesk.DataManagement.Client.Framework.Vault&lt;/EM&gt; assembly that should be referenced by the project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Solution Explorer in the VaultList project expand the &lt;EM&gt;References &lt;/EM&gt;node&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you see little yellow triangles like below then you need to delete and re-add the references to those Vault .dll files.&lt;/P&gt;
&lt;P&gt;They are in the&amp;nbsp;C:\Program Files (x86)\Autodesk\Autodesk Vault &amp;lt;year version&amp;gt; SDK\ folder assuming you installed the Vault SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bad References.png" style="width: 342px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/377760i119E88C7FA7376ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bad References.png" alt="Bad References.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After re-adding your references should look like this and the error should be corrected.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Good References.png" style="width: 358px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/377761i793C7B69B0EFBAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Good References.png" alt="Good References.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 05:12:31 GMT</pubDate>
    <dc:creator>Boorda</dc:creator>
    <dc:date>2017-07-14T05:12:31Z</dc:date>
    <item>
      <title>Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310663#M11088</link>
      <description>&lt;P&gt;Since the subject line of this post seams to have been changed I have re submitted the post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to check in and out a csv file from vault regualarly for updating but i am having great dificulty getting any of the code from various places including Doug Redmonds to work. I am getting a bit frustrated as I am wasting a lot of time.&lt;/P&gt;&lt;P&gt;This is for vault 2014 and using VB.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complete code to log in and out a single file would be very helpfull.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Malcolm&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 19:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310663#M11088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-26T19:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310882#M11089</link>
      <description>&lt;P&gt;Hi Malcolm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To download and checkout files use an OR statement with the AcquireFilesSettings.AcquisitionOption. I&amp;nbsp;updated this&amp;nbsp;function in this&amp;nbsp;SDK example to test:&lt;/P&gt;
&lt;P&gt;"C:\Program Files (x86)\Autodesk\Autodesk Vault 2014 SDK\VS10\VB\VaultBrowserSample"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Shared&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; downloadFile(connection &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Vault.Currency.Connections.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;Connection&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, file &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Vault.Currency.Entities.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;FileIteration&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, folderPath &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; settings &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Vault.Settings.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;AcquireFilesSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;(connection)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;'wB added&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.DefaultAcquisitionOption = VDF.Vault.Settings.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;AcquireFilesSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;AcquisitionOption&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Checkout &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Or&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&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; VDF.Vault.Settings.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;AcquireFilesSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;AcquisitionOption&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Download&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;'wB end added&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.AddEntityToAcquire(file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.LocalPath =&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Currency.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;FolderPathAbsolute&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;(folderPath)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection.FileManager.AcquireFiles(settings)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will test using CheckinFile() and upload my project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me more about the errors you are getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 22:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310882#M11089</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2013-06-26T22:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310960#M11090</link>
      <description>&lt;P&gt;Hi Wayne thanks for the reply, i have been trying similar code already but I can't pass the correct information for the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FileIteration? I have sent both the calling part of my code and the GetFile sub.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        Dim conditions As SrchCond()
        ReDim conditions(0)

        Dim lCode As Long = 1
        Dim Defs As PropDef() = serviceManager.PropertyService.GetPropertyDefinitionsByEntityClassId("FILE")
        Dim Prop As PropDef = Nothing

        For Each def As PropDef In Defs
            If def.DispName = "File Name" Then
                Prop = def
            End If
        Next def

        Dim searchCondition As SrchCond = New SrchCond()
        searchCondition.PropDefId = Prop.Id
        searchCondition.PropTyp = PropertySearchType.SingleProperty
        searchCondition.SrchOper = lCode
        searchCondition.SrchTxt = "12345 Testing XXXX.csv"

        conditions(0) = searchCondition

        ' search for files
        Dim FileList As List(Of Autodesk.Connectivity.WebServices.File) = New List(Of Autodesk.Connectivity.WebServices.File)()
        Dim sBookmark As String = String.Empty
        Dim Status As SrchStatus = Nothing

        While (Status Is Nothing OrElse FileList.Count &amp;lt; Status.TotalHits)

            Dim files As Autodesk.Connectivity.WebServices.File() = serviceManager.DocumentService.FindFilesBySearchConditions( _
                conditions, Nothing, Nothing, True, True, sBookmark, Status)

            If (Not files Is Nothing) Then
                FileList.AddRange(files)
            End If
        End While

        'For I = 1 To FileList.Count
        '    Vault.GetFile(Conn, FileList.Item(I), "C:\Vault\SMI Projects Data")
        'Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub GetFile(ByVal connection As oVDF.Vault.Currency.Connections.Connection, ByVal file As oVDF.Vault.Currency.Entities.FileIteration, ByVal folderPath As String)

        Dim settings As oVDF.Vault.Settings.AcquireFilesSettings = New oVDF.Vault.Settings.AcquireFilesSettings(connection)

        settings.DefaultAcquisitionOption = oVDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout Or _
                oVDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Download

        ' settings.DefaultAcquisitionOption = oVDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Download
        settings.AddEntityToAcquire(file)
        settings.LocalPath = New oVDF.Currency.FolderPathAbsolute(folderPath)

        connection.FileManager.AcquireFiles(settings)
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Malcolm&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 02:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310960#M11090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-27T02:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310991#M11091</link>
      <description>&lt;P&gt;Wayne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a matter of interest, I'm wondering how you managed to get the colours to copy across into the code window within this post?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 03:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4310991#M11091</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-27T03:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4311009#M11092</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/68582"&gt;@wayne.brill&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi Malcolm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To download and checkout files use an OR statement with the AcquireFilesSettings.AcquisitionOption.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Does using the OR statement mean it Both Checks Out &amp;amp; downloads the file? Whereas if it only said Checkout it wouldn't download the file?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 04:20:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4311009#M11092</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-27T04:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312057#M11093</link>
      <description>&lt;P&gt;Hi Malcom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a&amp;nbsp;zip file with an example that will Check out, download and Check in a file. It is based on this SDK sample:&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Autodesk\Autodesk Vault 2014 SDK\VS10\VB\VaultList&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was unable to attach it when I tried to post my reply. I went ahead and created this blog post. Please get it from there: &lt;A href="http://adndevblog.typepad.com/manufacturing/2013/06/checkout-checkin-a-file-in-vault-2014.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2013/06/checkout-checkin-a-file-in-vault-2014.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has two new buttons. One does the checkout and download and the other does the CheckIn. They both use a function that does the search for a file named "12345 Testing XXXX.csv". That function returns a FileIteration object. I used your code in that function to do the search. (with some updates to get the declarations to work).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an excerpt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; oFileIteration &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Vault.Currency.Entities.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;FileIteration&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; VDF.Vault.Currency.Entities.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;FileIteration&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;(connection, FileList(0))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; oFileIteration&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works for you. You will need to fix the references to the Vault dlls. (in a directory similar to this:&lt;/P&gt;
&lt;P&gt;C:\Program Files (x86)\Autodesk\Autodesk Vault 2014 SDK\bin)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:45:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312057#M11093</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2013-06-27T21:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312058#M11094</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is what happens in my tests. If I only use Checkout the file is checked out but it is not downloaded. If I just use Download then the file is downloaded but not checked out. Please let me know if your results are different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:49:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312058#M11094</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2013-06-27T21:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312060#M11095</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am just copying and pasting from Visual Studio. Not sure what is special about it that allows the colors to show up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wayne&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312060#M11095</guid>
      <dc:creator>wayne.brill</dc:creator>
      <dc:date>2013-06-27T21:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312096#M11096</link>
      <description>&lt;P&gt;Ok, it looks like you are using Internet Explorer and just pasting it directly into the message window, rather than using the insert code tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I paste it in with Chrome (haven't tested Firefox), it doesn't bring over any formatting (Colour or font) or indentations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for clarifying.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312096#M11096</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-27T22:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312102#M11097</link>
      <description>&lt;P&gt;ok it doesn't work in Firefox either. Sneaky Microsoft, just when you write off their browser, you discover something like this.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312102#M11097</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-27T22:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312210#M11098</link>
      <description>&lt;P&gt;Wayne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks heaps for helping out here, that worked perfectly for us with some minor tweaking. Very relieved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 03:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312210#M11098</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-28T03:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312211#M11099</link>
      <description>&lt;P&gt;its strange that its OR instead of AND. normally with OR operators in conditions the code moves on if the first condition is true. So although this isn't a condition it seems like a strange way of setting those options. Is there some other logic here that I'm missing? Just trying to understand it, rather than take it for granted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 04:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312211#M11099</guid>
      <dc:creator>scottmoyse</dc:creator>
      <dc:date>2013-06-28T04:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312888#M11100</link>
      <description>&lt;P&gt;You are confusing a logical OR "||" with a bitwise OR "|".&lt;/P&gt;
&lt;P&gt;But that's the C, C++, C# and Java way to do it - why VB would use "OR" for both is anybody's guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dave&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 16:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4312888#M11100</guid>
      <dc:creator>minkd</dc:creator>
      <dc:date>2013-06-28T16:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4314592#M11101</link>
      <description>&lt;P&gt;Hi Wayne thanks for the code it works and has saved me a lot of time and frustration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Malcolm&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2013 19:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/4314592#M11101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-30T19:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/6211503#M11102</link>
      <description>&lt;P&gt;Hi there, I'm completely new to Vault customization (and C#), and am becoming familiar with the SDK examples for C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to automate with a console app (no need for the Vault Client to be open)&amp;nbsp;is something fairly simple:&lt;/P&gt;&lt;P&gt;1. Connect &amp;amp; Login to Vault with the users Windows login credentials&lt;/P&gt;&lt;P&gt;2. Get the latest version of a specific Navisworks fileset (.nwf) and all it's children.&amp;nbsp; This .nwf file always exists and has a static path, so no need to search.&lt;/P&gt;&lt;P&gt;3. Check out a specific Naviswoks .nwd.&amp;nbsp; This .nwd file always exists and has a static path, so no need to search.&lt;/P&gt;&lt;P&gt;4. Publish the .nwf file and overwrite the .nwd file.&lt;/P&gt;&lt;P&gt;5. Check in&amp;nbsp;the .nwd file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with the C# code for this?&amp;nbsp; I have step 4 working fine using the Navisworks API.&amp;nbsp; Just need to take care of the Vault side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:46:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/6211503#M11102</guid>
      <dc:creator>jlane</dc:creator>
      <dc:date>2016-03-11T17:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/6591732#M11103</link>
      <description>&lt;P&gt;I get this error when I run the code. What do I need to change?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vault macro error.JPG" style="width: 496px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/277269i308DBE77D5E15982/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vault macro error.JPG" alt="Vault macro error.JPG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/6591732#M11103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T11:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7227605#M11104</link>
      <description>&lt;P&gt;The error indicates that the application cannot find the &lt;EM&gt;Autodesk.DataManagement.Client.Framework.Vault&lt;/EM&gt; assembly that should be referenced by the project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Solution Explorer in the VaultList project expand the &lt;EM&gt;References &lt;/EM&gt;node&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you see little yellow triangles like below then you need to delete and re-add the references to those Vault .dll files.&lt;/P&gt;
&lt;P&gt;They are in the&amp;nbsp;C:\Program Files (x86)\Autodesk\Autodesk Vault &amp;lt;year version&amp;gt; SDK\ folder assuming you installed the Vault SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bad References.png" style="width: 342px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/377760i119E88C7FA7376ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bad References.png" alt="Bad References.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After re-adding your references should look like this and the error should be corrected.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Good References.png" style="width: 358px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/377761i793C7B69B0EFBAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Good References.png" alt="Good References.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 05:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7227605#M11104</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2017-07-14T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7227816#M11105</link>
      <description>&lt;P&gt;I'm not able to open the project in VS2012 Express. In the solution explorer it says VaultList (load failed). Any ideas why?&lt;/P&gt;
&lt;P&gt;I think when I opened it up for the first time it say some elements were not loaded properly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 07:50:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7227816#M11105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T07:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7230832#M11106</link>
      <description>&lt;P&gt;Unfortunately that could be anything.&lt;/P&gt;
&lt;P&gt;Can you explain any errors you are receiving?&lt;/P&gt;
&lt;P&gt;Post any screen shots of the errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you send me a PM maybe we could set it up so I could remote into your machine and assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Addam&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 05:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/7230832#M11106</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2017-07-16T05:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Checking in and out a file</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/11969893#M11107</link>
      <description>&lt;P&gt;Hi I want to do the same thing in Inventor 2014. I am trying to make an AddIn in Inventor, that can CheckIn And Check Out a drawing or model.&lt;/P&gt;&lt;P&gt;I used your code and I am having trouble connecting to the Vault Server. I am geting this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaka73LU2_0-1684321662617.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1215621i19E6E725767AF931/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaka73LU2_0-1684321662617.png" alt="jaka73LU2_0-1684321662617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error is on this line:&lt;/P&gt;&lt;P&gt;' For demonstration purposes, the information is hard-coded.&lt;BR /&gt;Dim results As VDF.Vault.Results.LogInResult = VDF.Vault.Library.ConnectionManager.LogIn("localhost", "Vault", "Administrator", "", VDF.Vault.Currency.Connections.AuthenticationFlags.Standard, Nothing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing I am having trouble connecting to our server for some reason?&lt;/P&gt;&lt;P&gt;For localHost I used an IP that IT gave me and for Vault the server name.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/checking-in-and-out-a-file/m-p/11969893#M11107</guid>
      <dc:creator>jaka73LU2</dc:creator>
      <dc:date>2023-05-17T11:13:59Z</dc:date>
    </item>
  </channel>
</rss>

