It would be nice if a macro could be used on multiple machines, but only one user can run it at a time. Any tips or tricks are appreciated! Thank you.
Sorry for misunderstanding your question.
I am not a network guru so I can only offer a simply solution.
You have your macro check for a text file. If the text file does not exist then you have the macro create the text file. If the text file does exist then the macro would report that the macro is already running on a different computer and quit. When the macro completed its task then it would delete the text file so another user could use it. The text file could contain the user's name so that it could be included in the message other users would see when trying to run the macro.
I assume your macro is on a network. So what makes you believe that a macro can only be run on one computer? A macro can be run on as many computers that can access it. It can only be edited on the first computer that opened it unless all the other computers close solidworks. Please elaborate.
I was wondering if it is possible for a macro that is on a network, to only have it accessible by one user at a time, that way it is not being used at the same point in time by multiple users on the network. It isn't that I don't want multiple users to have it on their computers, I was just curious if there was some way you could check if the macro was being used on a different computer. When I say 'used', I mean that the macro is currently running. Thanks!
Or have the macro write to a ‘use’ Log, either multiple text files in a folder or added to one big text file. You could see who IS using it and deduct from that who is not using it.
I like this idea a lot. It is an easy, simple solution that will get the job done. I'm no network guru either so this is right up my alley. Thanks for the recommendation!
Retrieving data ...