Message 1 of 29
Vault login bypass
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on a script that's accessing content center. We are using windows authentication for our vault access, so this makes it easy to fill out the login dialog.
I would like the code to check if you're logged into vault; if not login. But I'm not having much luck getting it to work. I'm pretty sure the line under try: "SecureResults = VDF..." isn't working because the try always catches the exception. Any ideas?
Imports Connectivity.InventorAddin.EdmAddin
Imports VDF = Autodesk.DataManagement.Client.Framework.Vault
Dim SecureResults As VDF.Results.LogInResult
Dim Conn As VDF.Currency.Connections.Connection = Nothing
Try
SecureResults = VDF.Library.ConnectionManager.LogIn("neb-cdmsp", "Vault", "", "", VDF.Currency.Connections.AuthenticationFlags.WindowsAuthentication, Nothing)
If SecureResults.Success Then
Conn = SecureResults.Connection
MsgBox("Worked")
End If
Catch ex As Exception
MsgBox("Didn't work!")
End Try