PDM Vault Version via Excel Macro

And by replacing the dim xxx as IEdm by their equivalent Edm example:

Dim vault as Edmvault5

Set vault = vault.LoginAuto "PDM" ,0

 

D.Roger, 

I tried in a new macro, replacing with the name of my vault and an existing file with its path... Same mistake as before

 

Cyril

He does not accept that I write:

Set vault = vault.LoginAuto "PDM" ,0

 

Is the Windows session name the same as the vault username?

What are your settings for connections to the trunk? see in Administration and then setting

Other questions, which version of Windows?

The name used for the Windows session is exactly the same as the one used for PDM

I'm on Windows 7 Pro

PDM connection settings:

When I click on Use automatic login for this Vault,

I apparently can't check the Login as the currently logged in user in Windows option

From SW PDM help:

Sign in as the currently logged in user in Windows

Logs you in using the username and password of the current Windows profile. Select this option if the Vault connection type is set to Windows connection on the Archive server.

This option is available only for vaults that are configured to use Windows login.

Second point, I messed up in the rating:

Dim vault As EdmVault5
Set vault = New EdmVault5
vault.LoginAuto "PDM", 0

 

for PDM sessions the usernames correspond to the usernames for Windows sessions, but the passwords are not the same. 

Anyway I can't check this option...

On the other hand, I rewrote as you told me:

Dim vault As EdmVault5
Set vault = New EdmVault5
vault.LoginAuto "PDM", 0

and it does with the original write (Dim vault As New EdmVault5 then vault. LoginAuto "PDM", 0) and the error is still the same... IEdmVault18 failed

 

If the passwords are not the same then you can't use loginauto it seems to me!

Ok, that's probably why it systematically asks me for the username and password, at worst it's not a problem I'm ok to use Login(USERNAME, PASSWORD,CAULTNAME)...  

I tried:

vault.Login "Yves P", "test", "PDM"

test not being the right password

it tells me that the name or password is incorrect... which is normal

Our sessions don't have a password, so I finally wrote:

vault.Login "Yves P", "", "PDM"

and now I come back to the same error of IEdmVault18 failed

That way I only see the fact that he can't connect. By executing in step-by-step, it freezes on the "login" line or elsewhere?

Yes, on Vault. Login "Yves P", "", "PDM"

I just tested with the PDM admin session which has a password and it does the same thing

I'm drying up for my part, I don't see where it can come from. Maybe related to the fact that there is no association with Windows accounts (ActiveDirectory) but there apart from the hotline that could give its opinion I don't see.

By any chance, there aren't several EdmServer.exe launched in the task manager?

And as a last resort by launching the macro having closed SW and leaving PDM completely?

I'm starting to dry too.

Can you try to make a macro in Solidworks just allowing you to connect to the vault to see if it can come from Excel which doesn't necessarily have the same vba tools as SW.

Can you check the framework versions you have on your PC?

I tried directly in a SolidWorks macro by activating the PDM library

I have exactly the same error as when going through Excel and on the same line

what are the differences between the EdmVault5 or other digit...

What about framework versions? SW needs version 4 so some dlls used by APIs need version 2 or 3.5

Attached is a macro for connection, to be launched via SW for testing.

 


macro1.swp

same mistake with your macro1... :(

Where do I find the framework version?

In Config Panel\Programs\Programs and Features then see the names starting with Microsoft .NET Framework...