vl-file-systime

Discussion in 'AutoCAD' started by RitoM, Mar 3, 2004.

  1. RitoM

    RitoM Guest

    What causes "vl-file-systime" to return nil for for an open drawing? What other method can I use to retrieve the date of the currently open drawing?

    Thanks
     
    RitoM, Mar 3, 2004
    #1
  2. RitoM

    Jeff Mishler Guest

    To get the "last saved" date of the current drawing, (getvar "tdupdate")
    gives a Julian date, to convert to calender date, pass it to this little
    function, like this: (ser2cal (getvar "tdupdate"))

    (defun ser2cal (serdate)
    (menucmd
    (strcat "M=$(edtime,"
    (rtos (+ serdate 0) 2 8);2415019 add to serdate for MS dates
    ",DDD\",\" DD MON YYYY hh:mm)"))
    )

    will return: "Tue, 02 Mar 2004 17:05"

    What other method can I use to retrieve the date of the currently open
    drawing?
     
    Jeff Mishler, Mar 3, 2004
    #2
  3. RitoM

    RitoM Guest

    Jeff,

    Thank you very much, that does the trick!
     
    RitoM, Mar 3, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.