Design World Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCAD Store | 3DCAD Models | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive










  #1 (permalink)  
Old November 12th, 2007, 10:06 AM
Appollo Appollo is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Default Resetting system variable

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


  #2 (permalink)  
Old November 12th, 2007, 11:13 PM
Adesu Adesu is offline
Junior Member
 
Join Date: Feb 2007
Location: Indonesia-Tangerang
Posts: 7
Default

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 View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old November 21st, 2007, 01:54 AM
Agostino Agostino is offline
Member
 
Join Date: Jul 2006
Posts: 79
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0