Message 1 of 6

Not applicable
11-08-2019
01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi community!
I'm developing a console app that communicates with Inventor 2017 by using the API. I'd like to check if the user is connected to the vault.
I've find that code but the VaultBase namespace does not exist.
Dim myConnection As VDF.Vault.Currency.Connections.Connection = Nothing ' Get the Vault connection from Inventor Vault log in myConnection = Connectivity.Application.VaultBase.ConnectionManager.Instance.Connection() If myConnection Is Nothing Then System.Windows.Forms.MessageBox.Show _ ("Unable to get Vault connection, logged into Vault?") ' Debug.Print("Unable to get Vault connection") Return End If
I added all references to Autodesk.Connectivity.* and Autodesk.DataManagement.*.
Thanks,
Pascal
Solved! Go to Solution.