Hi whattaz,
Do you mean error handling code like this
Code:
(defun c:test (/ *error* om otm opt)
(setq *error* myer)
(setq om (getvar "xxx"))
(setvar "xxx" 0)
(setq otm (getvar "yyy"))
(setvar "yyy" 1)
(setq opt (getstring t "\nPress Esc button to test error: "))
;*****PUT YOUR MAIN CODE HERE *******
(setvar "xxx" om)
(setvar "yyy" otm)
(setq *error* nil)
(princ)
)
(defun myer (msg)
(setvar "xxx" om)
(setvar "yyy" otm)
(setq att "*** Resetting system variable has been done ***")
(princ att)
)
Originally Posted by
whattaz13
I'm looking for a some error handling. With a little luck and a lot of help from other peoples posts I got my list routine to work. Now that it's working I would like to add some error handling on not allowing xrefs to attach more that once. They attach fine but if I accidently attach one again it errors out. If any one could help that would be greatly appreciated. See attachment for the code...Thanks