ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
SSSandy Scott30/09/2020

In a VBA macro (or maybe a Solidworks add-in), is it possible to get or use the PDM login of the active Solidworks session?

I've started looking at the PDM API, and it strikes me as odd that the object (in a macro) would need to log in separately to the PDM add-in. All of the examples I've seen just create a New IEdmVault5 then use LoginAuto with a hard-coded vault name, but seems like an unnecessary step, and isn't portable between vaults.

Is there anyway or re-using the login the add-in is using for the active document, or at least get the vault name from it?