AnsweredAssumed Answered

Workgroup PDM API - Can you determine current user login?

Question asked by Daen Hendrickson on Oct 15, 2018
Latest reply on Oct 23, 2018 by Daen Hendrickson

I am using SW2014 SP5 (yes, still....)


I have written a macro that updates printer settings on the currently open drawing AND updates the PDM Workgroup copy of that same drawing.


To access the vault, I have my PDM login and password hard coded into the macro. This works, but does not allow for the macro to be distributable without editing the hard coded credentials to match each user's installation.


Is there a way to to interrogate the vault, determine the current user, and adjust login credential accordingly?


My first approach was to create a new generic account within the vault to be used for API access such as the above macro. However, I ran into the conflict of me as the active user in SW and the vault view and the macro trying to log in as someone else. Thoughts on this approach as a solution and how to get around it?


This macro is intended to be ran from within the active session of SW, not as a stand alone function.