Originally Posted by
jmelanson
WHOHAS will let you see who has a drawing currently open, but your probably looking for something more than that. Perhaps you could write a routine to extract that info whenever a dwg gets opened and filter it to a log file.
It really depends on what you have in place at the moment. If you already have people "well connected" with in-house customization and are loading and setting variables for each user already then what you want is easily possible with a few lines of code. If everyone is running on local copies without any acad.lsp or acaddoc.lsp or VBA customization in place, then your task for "shadowing" each user is much larger.
Something like the following could be used:
Code:
;*****************************************log
;;;Write out Names and dates of those who have been installed
(setq lname (getvar "loginname"))
(setq ltime (menucmd "M=$(edtime,$(getvar,date),DDDD\",\" D MONTH YYYY)"))
(setq fo (open "w:/thc-2i/Documentation/installed.log" "a")) ;edit this and point it to a correct file
(write-line (strcat lname "," ltime) fo)
(close fo)
;end writing function
;*******************************************
If you wanted to get really fancy, make this reactor driven writing out the open/close times.
RLB