By that I mean: How do I find out the name of the computer I'm logged in on using the EPDM API?
I'm setting up code to test whether a file is available for the currently logged in user to edit. I need to do these tests:
Is the file checked in or out?
If checked out, is it checked out by this user?
If checked out by this user, is it checked out on this machine?
I can do the first two, and I can get the computer name of the machine where the file was checked out, but how do I get the name of the computer where the user is currently working? I can't find anything about it in the EPDM API help file.
Thx.
SolidworksApi macros
AHA! I posted too soon.
It can be found using a builtin function called Environ$()
VBA:
myComputerName = Environ$("computername")
Piece o' cake...