Is the error handler being used in conjunction with a reactor callback function?
Also:
- It would be better to ensure that the file symbol is correctly defined, rather than assume that it points to a file descriptor.
- System variables should be reset to their original values, not the values that you choose.
- (defun myexit ( msg / ent ) (if (and (setq ent (tblobjname "layer" "ToolTracker")) (setq ent (entget ent)) ) (entmod (subst (cons 62 (- (abs (cdr (assoc 62 ent))))) (assoc 62 ent) ent)) ) (if (= 'file (type file)) (close file) ) (princ))
|