<?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: Access to Vault through Inventor in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7410019#M7128</link>
    <description>&lt;P&gt;One more thing, for any class defined object that you don't have a definition for (aka you didn't import any dlls) you can&amp;nbsp; declare a variable as 'object' and it will use that as a generic place holder.&amp;nbsp; This may help with the "LogInResults" object definition.&amp;nbsp; Change that to Dim lgResults as Object = ... and see if it continues, I doubt it because you haven't defined what VDF, Vault, Library, ConnectionManager are.&amp;nbsp; And VDF I a substituted for the value below.&lt;/P&gt;
&lt;P&gt;Imports VDF = Autodesk.DataManagement.Client.Framework&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 15:02:29 GMT</pubDate>
    <dc:creator>JamieVJohnson2</dc:creator>
    <dc:date>2017-09-26T15:02:29Z</dc:date>
    <item>
      <title>Access to Vault through Inventor</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7405861#M7124</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to the world of Vault API. I'm pretty useful with Inventor API and am trying to write a program that will allow me to&amp;nbsp;read an&amp;nbsp;iProperty value of an Inventor file in Vault.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't get past the first hurdle of establishing the connection. The code below produces the following errors:&lt;/P&gt;
&lt;P&gt;Error on Line 6 : Type 'VDF.Vault.Currency.Connections.Connection' is not defined.&lt;BR /&gt;Error on Line 9 : 'Connectivity' is not declared. It may be inaccessible due to its protection level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;Autodesk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DataManagement&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Framework&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Vault&lt;/SPAN&gt;
&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;Autodesk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Connectivity&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WebServices&lt;/SPAN&gt;
&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;VDF&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Autodesk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DataManagement&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Client&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Framework&lt;/SPAN&gt;
&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;ACW&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Autodesk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Connectivity&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WebServices&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;myConnection&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;VDF&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Vault&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Currency&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Connections&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Connection&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Get the Vault connection from &lt;/SPAN&gt;&lt;SPAN&gt;
'&lt;/SPAN&gt;&lt;SPAN&gt; the Inventor Vault log in&lt;/SPAN&gt;
&lt;SPAN&gt;myConnection&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Connectivity&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Application&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;VaultBase&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ConnectionManager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Instance&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Connection&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Any tips on what I'm missing? I'm writing in the iLogic environment of Inventor.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7405861#M7124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Vault through Inventor</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7407774#M7125</link>
      <description>&lt;P&gt;This is how I connect to vault for use by Inventor API (VB.net)&lt;/P&gt;
&lt;PRE&gt;      Private Property vConnection As Vault.Currency.Connections.Connection


 Public Sub LoginToVault()
        Dim lgResults As Vault.Results.LogInResult =
               VDF.Vault.Library.ConnectionManager.LogIn(VaultServer, VaultVault, VaultUsername, VaultPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.ReadOnly, Nothing)
        If lgResults.Success = True Then
            vConnection = lgResults.Connection
            'Else
            '    vConnection = Vault.Forms.Library.Login(Nothing)
        End If
        RaiseEvent VaultStatusChanged()
    End Sub

 &lt;/PRE&gt;
&lt;P&gt;Also, I've found that I had to copy the cmloader.dll file from vault explorer folder into my project code (must be correct release version).&amp;nbsp; I have a special window that responds to the connect event and creates a 'light on' during active connections.&amp;nbsp; That is not necessary for standard use.&amp;nbsp; I also once used a fallback method of opening the Vault Login screen (remmed out).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 21:12:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7407774#M7125</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-09-25T21:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Vault through Inventor</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7408614#M7126</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3677112"&gt;@JamieVJohnson2&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for responding. I am trying run my code from within the iLogic environment, which I'm not sure is even possible? as such I do not have a project code folder. Are you are using a 3rd party?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this error with the code you posted:&lt;/P&gt;
&lt;P&gt;Error on Line 4 : Type 'Vault.Results.LogInResult' is not defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate any help you can give, I've found very little about this subject online.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 07:35:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7408614#M7126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T07:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Vault through Inventor</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7409983#M7127</link>
      <description>&lt;P&gt;Inventor's object reference works the same in VB.net (Visual Studio), VBA (Inventor Tools\Macros), and iLogic (Rules), so there is not much of a learning curve there, but the editors use slightly different syntax.&amp;nbsp; iLogic Editor is a unique beast.&amp;nbsp; It handles many languages.&amp;nbsp; You can write iLogic style macro code, VBA, and VB.Net and others within in.&amp;nbsp; However, there is no 'intellisense' for it, and for that reason, I avoid using it for 'robust' programming.&amp;nbsp; I use Microsoft Visual Studio and write mainly with VB.Net.&amp;nbsp; Your current situation, you are accessing Vault API within the Inventor environment.&amp;nbsp; In order to do that, you must &lt;U&gt;import the references that access the Vault Web Service&lt;/U&gt; (manually via code, something I can't give you a quick answer for, sorry, look up how its done in VBA), or get access to the Vault Add-In within Inventor (probably more difficult as it wasn't designed for that).&amp;nbsp; This can get cumbersome in that environment for a lot of references, so if you are planning on creating a program that can integrate multiple platforms, I suggest you migrate to the Visual Studio environment. The entire list of references I'm using to access Vault are: Autodesk.Connectivity.WebServices, Autodesk.Connectivity.WebServices.Interop, Autodesk.Connectivity.WebServices.WCF, Autodesk.DataManagement.Client.Framework, and Autodesk.DataManagement.Client.Framework.Vault&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each of these are found with a .dll extension within Autodesk Vault (version) SDK\bin\x64\ folder.&amp;nbsp; I suppose you could use the vb command ImportDll to load them into the iLogic editor, but again, I haven't done that in a long time.&amp;nbsp; There is also Declare Function functionname Lib "*.dll" as value to pull out specific access points from a dll, and that can get very messy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 14:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7409983#M7127</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-09-26T14:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Vault through Inventor</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7410019#M7128</link>
      <description>&lt;P&gt;One more thing, for any class defined object that you don't have a definition for (aka you didn't import any dlls) you can&amp;nbsp; declare a variable as 'object' and it will use that as a generic place holder.&amp;nbsp; This may help with the "LogInResults" object definition.&amp;nbsp; Change that to Dim lgResults as Object = ... and see if it continues, I doubt it because you haven't defined what VDF, Vault, Library, ConnectionManager are.&amp;nbsp; And VDF I a substituted for the value below.&lt;/P&gt;
&lt;P&gt;Imports VDF = Autodesk.DataManagement.Client.Framework&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 15:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/access-to-vault-through-inventor/m-p/7410019#M7128</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-09-26T15:02:29Z</dc:date>
    </item>
  </channel>
</rss>

