+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: A "Today" Lisp?

  1. #1
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Mar 2012
    Posts
    37

    Question A "Today" Lisp?

    Registered forum members do not see this ad.

    I really miss the "Today" feature in AutoCAD 2002 which got wiped out ages ago. It was perfect for keeping tabs on what drawings I had opened on a particular date. Especially if I was doing timesheets and I had forgotten to make a note of what job I was working on in my daytimer.

    The "history" function that AutoCAD has provided us is... crap. crap crap crap.

    It only shows the most recent instance of when I opened a particular drawing. Which is absolutely useless if I want to figure out what I was working on, say June 21st, because I've opened most of those drawings again just yesterday.

    Is there a lisp program that can keep a log of what drawings I've opened on a particular day? I would LOVE to have "Today" come back, but I'm pretty sure that might be difficult to achieve.

    AT least if I had a logging program that kept track of every drawing I work in every day - that would help some.

    Silvercloak

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,986

    Default

    You can try to place this code into AcadDoc.lsp file - it will log all files opened on your workstation.
    Code:
    (setq theDate (rtos (getvar "CDATE") 2 10)
          theDate (strcat (substr theDate 1 4) "." (substr theDate 5 2) "." (substr theDate 7 2) " "
                          (substr theDate 10 2) ":" (substr theDate 12 2)))
    (setq fileStream (open "C:\\AutoCAD.log" "a"))
    (write-line (strcat theDate " - " (getvar "DWGPREFIX") (getvar "DWGNAME")) fileStream)
    (setq fileStream (close fileStream))
    Is also possible record saving/close operation or editing time, but this will require some extra coding.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Like above you could edit the Close command on your Acad menu to run (closelisp) Close

    (closelisp) is code above as a defun

    Using CUI the Close in menu is ^c^c_close now becomes ^c^c(closelisp) _close

    Code:
    (defun c:closelisp ()
    (setq theDate (rtos (getvar "CDATE") 2 10)
          theDate (strcat (substr theDate 1 4) "." (substr theDate 5 2) "." (substr theDate 7 2) " "
                          (substr theDate 10 2) ":" (substr theDate 12 2)))
    (setq fileStream (open "C:\\AutoCAD.log" "a"))
    (write-line (strcat theDate " - " (getvar "DWGPREFIX") (getvar "DWGNAME")) fileStream)
    (setq fileStream (close fileStream))
    )
    (closelisp)
    A man who never made mistakes never made anything

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,986

    Default

    BIGAL, if you don't mind, I have only one correction; the button's macro should be
    Code:
    ^c^c(c:closelisp) _close
    since you defined that as a command, not as a function.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  5. #5
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Thanks Msasu did not test just as a general suggestion of how to do it, I would do this as auto reactor but that would just confuse post for a pretty simple task. Using reactors could do a lot more I know I downloaded a lisp from here about what a user actually did once in a dwg.
    A man who never made mistakes never made anything

  6. #6
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Had a great discussion about this product with one of (or the) creator of this over at AUGI (nice guy too):

    http://www.cadtempo.com/
    "Potential has a shelf life." - Margaret Atwood

  7. #7
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Mar 2012
    Posts
    37

    Default

    Thanks for all the replies, sorry I haven't gotten back to anyone here. I've been swamped at home with summer stuff. I'll give your suggestions a shot!

  8. #8
    Super Member Patrick Hughes's Avatar
    Computer Details
    Patrick Hughes's Computer Details
    Operating System:
    Win 2000
    Graphics:
    Quadro fx500
    Monitor:
    2x 1920x1080
    Discipline
    Mechanical
    Patrick Hughes's Discipline Details
    Occupation
    Self unemployed - Machine Design
    Discipline
    Mechanical
    Details
    Machine Design
    Using
    AutoCAD pre 2000
    Join Date
    May 2008
    Location
    Rockford, Illinois
    Posts
    588

    Default

    Quote Originally Posted by RenderMan View Post
    Had a great discussion about this product with one of (or the) creator of this over at AUGI (nice guy too):

    http://www.cadtempo.com/
    Thank you for the mention RenderMan, and the kind words. I appreciate hearing different viewpoints on the subject and that discussion prompted me to write a blog post here: http://cadtempo.blogspot.com/2012/03...gement-or.html

    PS: The duhvinci moniker used at AUGI is me - I tried to change it to my name at one point but it never went through.
    www.cadtempo.com
    Time tracking for AutoCAD, Inventor, Revit and other CAD programs

  9. #9
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Quote Originally Posted by Patrick Hughes View Post
    Thank you for the mention RenderMan, and the kind words. I appreciate hearing different viewpoints on the subject and that discussion prompted me to write a blog post here: http://cadtempo.blogspot.com/2012/03...gement-or.html

    PS: The duhvinci moniker used at AUGI is me - I tried to change it to my name at one point but it never went through.
    You're welcome, Patrick.

    I recognized the avatar, but wasn't sure... a while ago I saw a member using my old 'cad monkey' pic (it's not really mine, of course, I just searched the interwebs for a neat pic!). LoL

    For those that may be interested, here's a link to the multi-page thread I mentioned above... Many interesting viewpoints on this topic discussed.

    "Potential has a shelf life." - Margaret Atwood

  10. #10
    Super Member Murph_map's Avatar
    Computer Details
    Murph_map's Computer Details
    Operating System:
    XP,Visa, Win7
    Computer:
    HP something or other and the laptop is an HP too
    RAM:
    2 gigs or 6 gigs in Laptop
    Discipline
    Utilities
    Murph_map's Discipline Details
    Occupation
    Boats and campers renting and repairs
    Discipline
    Utilities
    Details
    GIS and Map making.
    Using
    Map 3D 2011
    Join Date
    Feb 2011
    Location
    TN or KY depends if I'm at work or home.
    Posts
    585

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Patrick Hughes View Post

    PS: The duhvinci moniker used at AUGI is me - I tried to change it to my name at one point but it never went through.
    Or the Dorkness changed it back, she is tricky like that.
    Murph

    Need a boat or camper for the weekend?

Similar Threads

  1. Export properties ("measurement") of "Aligned Dimension" to Excel
    By nhatquyelec in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 1st Feb 2013, 07:58 am
  2. Replies: 17
    Last Post: 24th Jan 2013, 05:34 pm
  3. "Hidden" line turns to "continuous" in layout view
    By jeck in forum AutoCAD General
    Replies: 12
    Last Post: 19th Jun 2011, 12:44 pm
  4. (read (strcat "(" "1.5X250X600" ")"))
    By muthu123 in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 10th Jul 2010, 01:05 pm
  5. Replies: 1
    Last Post: 25th Nov 2009, 06:35 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts