Vault Connection when Catching Events from AutoCAD Mechanical
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to catch a Vault event from Mechanical. This works fine. But when I pass thru the Vault connection from the Vault Client it is empty. In Inventor this works and I have the Vault connection. In Mechanical this doesn't work. I can't get the connection to Vault. In the Vault AddIn I create a public shared variable like this
Public Shared _connection As VDF.Vault.Currency.Connections.Connection
At the "OnLogOn" Sub from the IExtension I get the Vault connection and pass it thru to the variable like this
_connection = application.Connection
When I now use this _connection in an Event like "UpdateFileLifecycleStateEventPre" while the user changes the state in the Inventor client, it works and I have the connection to Vault. But when the user changes the state in Mechaical the _connection is empty. Why is the connection not available in Mechanical and how do I get the active Vault connection then?