Hi Apollo,
Use error handling like this code
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)
)
Quote:
Originally Posted by Appollo
Hi,
I have changed my fieldeval and updatethumbnail system variables to 21 and 0 to help with performance issues in drawings with a lot of attributes and fields. For some reason those keep changing back to their original settings fairly often. They do retain that setting for a little while and at some point change. Any suggestions?
Thanks in advance.
|