Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting system variable

  • Thread starter Thread starter Appollo
  • Start date Start date
A

Appollo

Guest
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.
 
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)
  )


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.
 
Hi,
The reason may be that some application you have in AutoCAD that does not restore the
settings after changing them. I suggest you to force them by creating a file named acad.lsp in one of your support file search path and add these rows below to it using Notepad.
(setvar "fieldeval" 21)
(setvar "updatethumbnail" 0)
Cheers!
 

Part and Inventory Search

Sponsor

Back
Top