If someone is already logged in on that machine, you don't need to login. You can check if someone is logged in. If not, you can login using a specific set of details like this:
'This function logs in the Admin user on a vault if no one is logged in before from this machine
Private Sub LogInAdminIfNotLoggedIn(ByVal vaultName As String, ByVal adminPassword As String)
'Check if someone is logged in already
Dim vault As IEdmVault11
vault = New EdmVault5
Dim userID As Integer
userID = vault.GetLoggedInWindowsUserID(vaultName)
If userID <> 0 Then Exit Sub 'Already logged in
'Log in Admin
vault.LogInWindowsUser("Admin", adminPassword, vaultName)
Firstly thank you for your quick response!!
Secondly my apologies for the delay in my response!!
Ok I have the above in place (Just C#).
But here is my problem. The environment is a server and gets logged-off when not in-use by remote desktop.
So basically there is nobody logged-in when the login occurs.
When I create folders via the EPDM api (after above signin) the code works 100%
When I open a solidwork assembly from the EPDM vault, the EPDM login pops up and requests login...
Just before I open the solidworkds assembly, I again run the code above to login, but still the popup signin screen displays.
Is there a different login to EPDM via the solidworkds API?
Basically I need to open a solidworks document from Solidworks API from an EPDM location without the EPDM popup password request.