So I think I've narrowed it down to this lisp:
;_____________________________________________________________________________
;;MAKES COPY OF DRAWING IN C:\AutoCAD-BAK AND UPDATES ON SAVE AND QSAVE
;_____________________________________________________________________________
(vl-load-com)
(vlr-command-reactor nil '((:vlr-commandEnded . copydwg)))
(defun copydwg (calling-reactor endcommandInfo / destdir dwgdir t-o-d)
(setq thecommandend (nth 0 endcommandInfo))
(cond
(= thecommandend "SAVE")
(= thecommandend "QSAVE")
)
(if (not (wcmatch (getvar 'DWGNAME) "Drawing*.dwg"))
(progn
(defun t-o-d (/ curdate curtime)
(setq curdate (rtos (fix (getvar 'cdate)) 2 0)
curtime (strcat (substr curdate 5 2) "-" (substr curdate 7 2) "-" (substr curdate 1 4)))
)
(defun hour (/ ctime ampm stime)
(setq ctime (rtos (rem (getvar 'cdate) 1) 2 6)
ampm (if (<= (atof (substr ctime 3 2)) 12) "AM" "PM")
stime (strcat (substr ctime 3 2)))
)
;Makes C:\AutoCAD-BAK\currentdate\hour if it doesn't already exist
(if (not
(vl-file-directory-p (strcat "C:/AutoCAD-BAK/")))
(vl-mkdir (strcat "C:/AutoCAD-BAK/"))
)
(if (not
(vl-file-directory-p (strcat "C:/AutoCAD-BAK/" (t-o-d))))
(vl-mkdir (strcat "C:/AutoCAD-BAK/" (t-o-d)))
)
(if (not
(vl-file-directory-p (strcat "C:/AutoCAD-BAK/" (t-o-d) "/" (hour))))
(vl-mkdir (strcat "C:/AutoCAD-BAK/" (t-o-d) "/" (hour)))
)
;For some reason the files get huge if not deleted then saved on top of
(if (findfile (strcat "C:/AutoCAD-BAK/" (t-o-d) "/" (hour) "/" (getvar 'dwgname)))
(vl-file-delete (strcat "C:/AutoCAD-BAK/" (t-o-d) "/" (hour) "/" (getvar 'dwgname)))
)
(setq destdir (strcat "C:/AutoCAD-BAK/" (t-o-d) "/" (hour) "/" (getvar 'dwgname))
dwgdir (strcat (getvar 'dwgprefix) (getvar 'dwgname))
)
(vl-file-copy dwgdir destdir T)
)
)
)
Could someone take a look and see if there is anything blaring that would affect these commands?
Thanks,
Ron