Author Topic: DRAWING USAGE TRACKING/LOGGING  (Read 2184 times)

0 Members and 1 Guest are viewing this topic.

STEVEDALLAS

  • Guest
DRAWING USAGE TRACKING/LOGGING
« on: September 08, 2008, 11:59:39 AM »
This has probably been posted before, but...

Is there a way of tracking who had a drawing open last, etc.?
A program, plug-in, arx, lsp, orther?

We have drawings being worked on? It is getting to the point where we need to know who had it last, and when!

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #1 on: September 08, 2008, 12:17:07 PM »
I m sure that a lisp that loads every time a drawing is opened, that creates/ maintains a log in the directory of the drawing would work.  Time opened and by who.  It would at least show who opened the drawing.?

With the help of a reactor You could catch a close  or save and log the user id.?

Just thinking aloud...
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #2 on: September 08, 2008, 12:26:49 PM »
Look here
http://www.theswamp.org/index.php?topic=2489.0

You can also search timesheet
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #3 on: September 08, 2008, 12:40:38 PM »
It is getting to the point where we need to know who had it last, and when!

Sounds like better training is required.   :roll:



I've been using the OWNER and DATE MODIFIED columns of Windows Explorer.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #4 on: September 08, 2008, 12:45:25 PM »
Quote from: TimSpangler
I m sure that a lisp that loads every time a drawing is opened, that creates/ maintains a log in the directory of the drawing would work.  Time opened and by who.  It would at least show who opened the drawing.?

Yes. We have used a system like this in the past. I've already forgotten why we enabled it at the time, but I do remember that it worked. Of course, if this is mission critical, then you would probably need something that logged it at the server level.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #5 on: September 08, 2008, 01:13:05 PM »
Sounds like better training is required.   :roll:



Couldn't have said it better myself.                  ;-)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #6 on: September 08, 2008, 01:32:12 PM »
Sounds like better training is required. :roll:

Agreed. However, when you're dealing with hundreds of CADD operators, many of which are contractors that parachute in and out of projects, that's not a blanket solution, nor a guarantee they'll honor provided training / standards. Augmenting same with logging is a good defence, allowing you these ease of identify who is violating training and standards for appropriate smack upside the head. Notwithstanding many other uses for logging.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

craigr

  • Guest
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #7 on: September 08, 2008, 02:17:59 PM »
We use the 'Revdate' command.

I have modified the 'save' button to do a 'Revdate' before saving the file. - Of course this doesn't work when they click the X in the upper right corner to close the file.

craigr

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #8 on: September 09, 2008, 03:16:30 AM »
I have to agree with MP.
While training is very important theres always someone who feels the need to do things their own way, meaning to put it right before it goes out.... then theres the looming deadlines issue where the boss in charge drops changes into the caddies lap "last minute" and no-time for  a standards check.... :(
While these issues shouldnt cause problems, I have found that people can/will/do cut corners to please management and get the jobs out on time.
I hate shoddy work, and I have tried to track down the workers on a scheme many times to find out where and when the drawing went wrong mainly to help identify WHO needs training in what subjects...
Thanks for explaining the word "many" to me, it means a lot.

deegeecees

  • Guest
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #9 on: September 09, 2008, 11:30:05 AM »
You could "roll your own" tracking system...


...just sayin' is all.

ronjonp

  • Needs a day job
  • Posts: 7531
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #10 on: September 09, 2008, 11:54:19 AM »
You could add something like this to startup:

Code: [Select]
(defun rjp-log2file (path / fname dt tm dttm)
  (setq dt   (rtos (fix (getvar 'cdate)) 2 0)
tm   (rtos (rem (getvar 'cdate) 1) 2 6)
dttm (strcat (substr dt 5 2)
     "-"
     (substr dt 7 2)
     "-"
     (substr dt 1 4)
     "-"
     (substr tm 3 2)
     ":"
     (substr tm 5 2)
     )
  )
  (if (and (= (getvar 'dwgtitled) 1)
   (vl-file-directory-p path)
   (setq fname (open (strcat path "\\DWGS_Opened.log") "a"))
      )
    (progn
      (write-line
(strcat (getenv "username")
","
dttm
","
(getvar 'dwgprefix)
""
(getvar 'dwgname)
)
fname
      )
      (close fname)
    )
  )
  (princ)
)
(rjp-log2file "c:")

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

deegeecees

  • Guest
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #11 on: September 09, 2008, 12:05:52 PM »
^^^Exactly!^^^

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #12 on: September 09, 2008, 12:16:22 PM »
Yeah just like that ^^^^  But we have people that open dwg's all the time with out making changes.  A reactor may be needed to  catch a save??
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

T.Willey

  • Needs a day job
  • Posts: 5251
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #13 on: September 09, 2008, 01:39:02 PM »
Here is a reactor I did a while ago.  It tells you how long a drawing has been open, and if it was saved.  It could be better, but it was just a test back when I wanted to look into reactors.  Change the file name/location to suit you needs.

Code: [Select]
(if (not GlbVarTimeString)
    (progn
        (setq DateStr (rtos (getvar "cdate") 2 16))
        (setq GlbVarTimeString
            (strcat
                (substr DateStr 5 2)
                "/"
                (substr DateStr 7 2)
                "/"
                (substr DateStr 1 4)
                ","
                (substr DateStr 10 2)
                ":"
                (substr DateStr 12 2)
                ","
                (getvar "dwgprefix")
                (getvar "dwgname")
                ","
            )
        )
        (setq DateStr nil)
    )
)
(if (not GlbReactorBeginClose)
    (setq GlbReactorBeginClose (vlr-dwg-reactor "TimeSheet" '((:vlr-BeginClose . DwgToBeClosed))))
)
(if (not GlbReactorSaveComplete)
    (setq GlbReactorSaveComplte (vlr-dwg-reactor "TimeSheet" '((:vlr-SaveComplete . SaveCompleted))))
)
;-----------------------------------------------------------------------------------------------------------
(defun SaveCompleted (React DwgName / DateStr)
   
    (setq DateStr (rtos (getvar "cdate") 2 16))
    (setq GlbVarSaveTime (strcat (substr DateStr 10 2) ":" (substr DateStr 12 2) ","))
)
;-------------------------------------------------------------------------------------------------------------
(defun DwgToBeClosed (React DwgName / DateStr TextFile New Opened)
   
    (if (equal (getvar "dwgtitled") 1)
        (progn
            (setq DateStr (rtos (getvar "cdate") 2 16))
            [color=red](if (not (setq TextFile (findfile "TimeSheet.csv")))[/color]
                (progn
                    (setq New T)
                    [color=red](setq TextFile "C:\\Custom2006\\TimeSheet.csv")[/color]
                )
            )
            (setq Opened (open TextFile "a"))
            (if New
                (write-line "Date,Time Opened,File Name,Last Saved,Closed Time" Opened)
            )
            (write-line
                (strcat
                    GlbVarTimeString
                    (if GlbVarSaveTime
                        GlbVarSaveTime
                        "Not saved!,"
                    )
                    (substr DateStr 10 2)
                    ":"
                    (substr DateStr 12 2)
                )
                Opened
            )
            (close Opened)
        )
    )
)
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: DRAWING USAGE TRACKING/LOGGING
« Reply #14 on: September 09, 2008, 11:46:18 PM »
here's one i posted a while back.

http://www.theswamp.org/index.php?topic=22668.0
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox