PDA

View Full Version : lisp for spell check when closing DWGs in 2006



Henry
01-05-2007, 05:13 PM
Can anyone help me out with a Lisp routine on spell checking dwgs when closing.

Cad64
03-06-2007, 06:47 PM
Give this a try:


(defun c:spclose (/ pickvar ent)
(setq pickvar (getvar "pickfirst"))
(setvar "pickfirst" 1)
(princ "\nSpell Checking, Please Wait . . . ")
(setq ent (ssget "X" '((0 . "MTEXT,TEXT"))))
(command "_.spell" ent "")
(setvar "pickfirst" pickvar)
(command "_.save" "" "Y" "_.close" "Y")
(princ)
)