AnsweredAssumed Answered

How can you use (or get) the current vault login via API

Question asked by Sandy Scott on Sep 30, 2020
Latest reply on Oct 8, 2020 by Sandy Scott

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?