I'm hoping someone can help me figure out why the below lisp routine doesn't work. What I'm hoping to do is every time I save/qsave a drawing the command Annoreset is run. Thanks!
Code:
(defun AtSaveCommand (calling-reactor b)
(if
(or
(= (car b) "QSAVE")
(= (car b) "SAVEAS")
(= (car b) "SAVE")
)
(command "_.annoreset" "all" "")
)
)
(defun loadTheSaveReactor ()
(vl-load-com)
(if *FileOnSave* (vlr-remove *FileOnSave*))
(setq *FileOnSave*
(vlr-command-reactor nil
'((:vlr-commandwillStart . AtSaveCommand)))
)
)
(loadTheSaveReactor)