View Full Version : drawing access log
eleonard
2005-10-27, 12:31 AM
Is there a way to automatically log who gets into drawings. I would like to log the following. who accessed the drawing, and on what date.
You can have AutoCAD create a log file of each drawing session. It contains the start time and date and then of course the log file's save time will tell when that log file was last written. A custom routine can also be developed to include that information without all of the command history shown in the AutoCAD generated log file.
eleonard
2005-10-27, 01:13 AM
I have found a routine that I don't completly understand and need some help modifying it to do what i need.
I am trying to log when a drawing is opened and by whom it was opened. I would like to track this all in one file and it must reside in the project folder on our network. I would like this to basically be created when the drawing is opened with out having to activate a command to do so.
here is what I have found
(defun c:log (/ a d)
(setq a (open (strcat (getvar "dwgprefix") "Log.csv") "a"))
;;put path in (getvar "dwgprefix") ex. "c:\\log\\"
(setq d (rtos (getvar "cdate") 2 0))
(princ (strcat "\n" (getvar "dwgname") ",") a)
(princ (strcat (getvar "dwgprefix") ",") a)
(princ (strcat (substr d 7 2)
"-"
(substr d 5 2)
"-"
(substr d 1 4)
","
)
a
)
(close a)
(princ)
)[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
Can anyone help me?
ccowgill
2005-10-27, 02:13 AM
to get it to automatically run, remove the defun and insert your lisp code into the acad.lsp file, and make sure everyones machine is set to load acad.lsp in every drawing, this might not be the best way to do it, but it will work. You can also use the maintain log file in the options dialog under open and save, it maintains a log of all files opened, how long the drawing was open, and any commands that were typed in. I use it to fill out my time book, it makes it easier to recall what I did, or if there are questions on job billings, I can pull it up and find out exactly what I did. Under the files tab, you can change the log file location and have it go where ever you want. the only problem is, it isn't one file, it creates a txt file for every drawing opened.
Mike.Perry
2005-10-27, 03:02 AM
Hi "eleonard" (Sorry, I don't know your real name)
Please note I have *merged* your two threads that deal with the same query...
Thanks, Mike
Forum Moderator
Mike.Perry
2005-10-27, 03:03 AM
Is there a way to automatically log who gets into drawings. I would like to log the following. who accessed the drawing, and on what date.Hi
Take a look at the Express Tools command DWGLOG
Have a good one, Mike
CAB2k
2005-10-27, 03:52 PM
to get it to automatically run, remove the defun and insert your lisp code into the acad.lsp file, and make sure everyones machine is set to load acad.lsp in every drawing, this might not be the best way to do it, but it will work. You can also use the maintain log file in the options dialog under open and save, it maintains a log of all files opened, how long the drawing was open, and any commands that were typed in. I use it to fill out my time book, it makes it easier to recall what I did, or if there are questions on job billings, I can pull it up and find out exactly what I did. Under the files tab, you can change the log file location and have it go where ever you want. the only problem is, it isn't one file, it creates a txt file for every drawing opened.
You may also add this to your Startup lisp
(and (/= (load "xyz.lsp" "nogo") "nogo")
(xyzstart))
Where "xyz.lsp" is the name of your lisp file & must be in the search path
and xyzstart is the procedure name to start the lisp.
LanceMcHatton
2005-10-31, 08:03 PM
Hi
Take a look at the Express Tools command DWGLOG
Have a good one, Mike
We use DWGLOG in our office. Works out very well. I have modified our company's menu *.mnl file to load the DWGLOG.lsp and .arx files automatically.
The log it keeps is a txt file that rarely gets to be 10k in size. It tells you what files people have opened, closed, and XREFed and date stamps each occurrence.
It's very handy.
jwanstaett
2005-11-01, 03:15 PM
This thread (http://forums.augi.com/showthread.php?t=20667) should help
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.