Jump to content

Recommended Posts

Posted

Guys is there anyone who knows how to have a vba that logs what drawings you open with a date - start time and end time into a excel sheet??

 

Or within lisp - i dont mind

Posted

Thanks mate - i just added this to a lisp that is loaded on everyones pc. works fine.

 

Thanks mate

 

(defun-q S::STARTUP (/ Draftername Job file line2write)
(setq p1 (strcat (menucmd "M=$(edtime,$(getvar,date),MON - DDD D YY )")))
(setq Draftername (getvar "loginname"))
(setq Job (strcat (getvar "dwgprefix") (getvar "dwgname")))
 (setq file (open (strcat "R:\\Temp\\Russell\\DWGLOG\\" p1 "AutoCadCivilDrawingLog.csv") "a"))
 (setq line2write (strcat
        Draftername
        ","
        (menucmd "M=$(edtime,$(getvar,date),MON D YY HH:MM AM/PM)")
        ","
      Job))
    (write-line line2write file)
 (close file)

(setq userfile (open (strcat "C:\\" p1 "AutocadCivilUserDrawingLog.csv") "a"))
(write-line line2write userfile)
(close userfile)
(princ))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...