AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Anonymous(anon)
Posts: 0
Message 1 of 10 (382 Views)

How to keep DEFAULTGIZMO setting after program restart

382 Views, 9 Replies
03-26-2009 08:58 AM
Is it possible to set the DEFAULTGIZMO setting to "3" (not visible) and have it remember that setting after the program has been shut down? On my version, at least, it will retain the setting as long as the program is open, but the next time I start it back up, it reverts to the original "0" setting. Thanks!
*Tim Decker
Message 2 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 11:03 AM in reply to: Anonymous


This value is not saved, so you must place it in
your acaddoc.lsp file, to be loaded upon opening of your drawings.


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">

Is it possible to set the DEFAULTGIZMO setting to "3" (not visible) and have it
remember that setting after the program has been shut down? On my version, at
least, it will retain the setting as long as the program is open, but the next
time I start it back up, it reverts to the original "0" setting.
Thanks!

Distinguished Mentor
nrz13
Posts: 610
Registered: ‎01-16-2007
Message 3 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 11:38 AM in reply to: Anonymous
Thanks for the reply. How would I do that? I have a custom .lsp file that loads on startup, but the only thing I know how to do is to be able to set up a lisp routine to turn it off using a keyboard shortcut after the program has loaded. How would I make it run automatically when AutoCAD is loaded? Thanks again for your help.

______________________________________________________________________________________________________________________________________________________
System specs: AutoCAD 2015 64-bit SP1, Windows 7 64-bit SP1, Intel Core i7-2600K, 16GB RAM, Crucial M4 SSD, AMD FirePro V4900, 2 Dell Monitors (2560x1600)
*Tim Decker
Message 4 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 12:16 PM in reply to: Anonymous

If you don't know how, or don't have, an
acaddoc.lsp file in your support directory, the easiest way is to use the
"Startup Suite" option in the APPLOAD command.  It will load a lisp file
automatically on startup for all your drawings.  This of course means you
will need a lisp file for it to load.  Lisp files are easy to make, they
are Notepad ascii files with a .lsp extension (no .txt).  The text you will
place in you lisp file is in the following format:

 

(if (not (= (getvar "DEFAULTGIZMO") 3))
 
(setvar "DEFAULTGIZMO" 3)
)

 

I find this a good general test routine for all
variables you want set, regardless of whether they are saved or not.  Some
other variable that are not saved, bu may be usefull are:


(if (not (= (getvar "BINDTYPE") 1))
  (setvar "BINDTYPE"
1)
)
(if (not (= (getvar "CMDECHO") 0))
  (setvar "CMDECHO"
0)
)
(if (not (= (getvar "EXPERT") 1))
  (setvar "EXPERT"
1)
)
(if (not (= (getvar "EXPLMODE") 1))
  (setvar "EXPLMODE"
1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
  (setvar "HIGHLIGHT"
1)
)
(if (not (= (getvar "HPDRAWORDER") 1))
  (setvar
"HPDRAWORDER" 1)
)
(if (not (= (getvar "MENUECHO") 2))
  (setvar
"MENUECHO" 2)
)
(if (not (= (getvar "OSNAPZ") 1))
  (setvar
"OSNAPZ" 1)
)
(if (not (= (getvar "TEXTQLTY") 100))
  (setvar
"TEXTQLTY" 100)
)
(if (not (= (getvar "TSPACEFAC") 1.0))
  (setvar
"TSPACEFAC" 1.0)
)
(if (not (= (getvar "TSPACETYPE") 2))
  (setvar
"TSPACETYPE" 2)
)

 

You can explore all these variable in you help files.  The format of
the "if" statement is fairly clear, get the variable, test it versus the value,
if it is not equal, set the variable correctly.


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
Thanks
for the reply. How would I do that? I have a custom .lsp file that loads on
startup, but the only thing I know how to do is to be able to set up a lisp
routine to turn it off using a keyboard shortcut after the program has loaded.
How would I make it run automatically when AutoCAD is loaded? Thanks again for
your help.
Distinguished Mentor
nrz13
Posts: 610
Registered: ‎01-16-2007
Message 5 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 12:23 PM in reply to: Anonymous
Thanks, that works perfectly. I just copied it and pasted it into my custom .lsp file instead of the acaddoc. That way when I go to use 2011 I won't have to mess with it again.

______________________________________________________________________________________________________________________________________________________
System specs: AutoCAD 2015 64-bit SP1, Windows 7 64-bit SP1, Intel Core i7-2600K, 16GB RAM, Crucial M4 SSD, AMD FirePro V4900, 2 Dell Monitors (2560x1600)
*Some Buddy
Message 6 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 01:13 PM in reply to: Anonymous

Hi Tim,

 

I was just wondering,
size=2>why

 

(if (not (= (getvar "DEFAULTGIZMO")
3))


instead of

 

(if (/= (getvar "DEFAULTGIZMO") 3)

 

and why

 

(if (not (= (getvar "CMDECHO") 0))

 

instead of

 

(if (not (zerop (getvar "CMDECHO")))

 

--
Humans are born with a wide horizon.
As time goes by, the horizon
narrows and
narrows, until it becomes a point of view.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Tim Decker" <t o d e c k e r @ h o t m a i l . c o m> a écrit dans
le message de news:
href="mailto:6150096@discussion.autodesk.com">6150096@discussion.autodesk.com
...


If you don't know how, or don't have, an
acaddoc.lsp file in your support directory, the easiest way is to use the
"Startup Suite" option in the APPLOAD command.  It will load a lisp file
automatically on startup for all your drawings.  This of course means you
will need a lisp file for it to load.  Lisp files are easy to make, they
are Notepad ascii files with a .lsp extension (no .txt).  The text you
will place in you lisp file is in the following format:

 

(if (not (= (getvar "DEFAULTGIZMO") 3))
 
(setvar "DEFAULTGIZMO" 3)
)

 

I find this a good general test routine for all
variables you want set, regardless of whether they are saved or not. 
Some other variable that are not saved, bu may be usefull are:


(if (not (= (getvar "BINDTYPE") 1))
  (setvar "BINDTYPE"
1)
)
(if (not (= (getvar "CMDECHO") 0))
  (setvar "CMDECHO"
0)
)
(if (not (= (getvar "EXPERT") 1))
  (setvar "EXPERT"
1)
)
(if (not (= (getvar "EXPLMODE") 1))
  (setvar "EXPLMODE"
1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
  (setvar "HIGHLIGHT"
1)
)
(if (not (= (getvar "HPDRAWORDER") 1))
  (setvar
"HPDRAWORDER" 1)
)
(if (not (= (getvar "MENUECHO") 2))
  (setvar
"MENUECHO" 2)
)
(if (not (= (getvar "OSNAPZ") 1))
  (setvar
"OSNAPZ" 1)
)
(if (not (= (getvar "TEXTQLTY") 100))
  (setvar
"TEXTQLTY" 100)
)
(if (not (= (getvar "TSPACEFAC") 1.0))
 
(setvar "TSPACEFAC" 1.0)
)
(if (not (= (getvar "TSPACETYPE")
2))
  (setvar "TSPACETYPE" 2)
)

 

You can explore all these variable in you help files.  The format of
the "if" statement is fairly clear, get the variable, test it versus the
value, if it is not equal, set the variable correctly.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Thanks
for the reply. How would I do that? I have a custom .lsp file that loads on
startup, but the only thing I know how to do is to be able to set up a lisp
routine to turn it off using a keyboard shortcut after the program has
loaded. How would I make it run automatically when AutoCAD is loaded? Thanks
again for your help.
*Tim Decker
Message 7 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 02:19 PM in reply to: Anonymous

Personal preference and application for the first
(with only a single item to eval per expression, I don't need the multiple
numstr comparison of /=, same with using = instead of equal, no need for fuzz
ever for any of my variables), and ease of consistency for the second. 
ZEROP only works for test resolving 0[.0] as the operator, mine I kept as
generic as possible, for a single expression to test for anything, intger, real,
string, etc. of any value.  For me it's the best of both worlds.  I
supposed, if I actually wanted, I could have made a single compare function and
referenced it repeatedly with (compare VARIABLE VALUE) for each test, then
set the function to nil when finished with it, but I hate making functions, just
for their own sake.

 

If I really wanted to get obtuse, I could have
written it backwards, testing for =, and using an elseexpr in the if
function.


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>


Hi Tim,

 

I was just wondering,
face=Arial>why

 

(if (not (= (getvar "DEFAULTGIZMO")
3))


instead of

 

(if (/= (getvar "DEFAULTGIZMO") 3)

 

and why

 

(if (not (= (getvar "CMDECHO") 0))

 

instead of

 

(if (not (zerop (getvar "CMDECHO")))

 

--
Humans are born with a wide horizon.
As time goes by, the
horizon narrows and
narrows, until it becomes a point of view.


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
"Tim Decker" <t o d e c k e r @ h o t m a i l . c o m> a écrit
dans le message de news:
href="mailto:6150096@discussion.autodesk.com">6150096@discussion.autodesk.com
...


If you don't know how, or don't have, an
acaddoc.lsp file in your support directory, the easiest way is to use the
"Startup Suite" option in the APPLOAD command.  It will load a lisp
file automatically on startup for all your drawings.  This of course
means you will need a lisp file for it to load.  Lisp files are easy to
make, they are Notepad ascii files with a .lsp extension (no .txt). 
The text you will place in you lisp file is in the following
format:

 

(if (not (= (getvar "DEFAULTGIZMO")
3))
  (setvar "DEFAULTGIZMO" 3)
)

 

I find this a good general test routine for all
variables you want set, regardless of whether they are saved or not. 
Some other variable that are not saved, bu may be usefull are:


(if (not (= (getvar "BINDTYPE") 1))
  (setvar "BINDTYPE"
1)
)
(if (not (= (getvar "CMDECHO") 0))
  (setvar "CMDECHO"
0)
)
(if (not (= (getvar "EXPERT") 1))
  (setvar "EXPERT"
1)
)
(if (not (= (getvar "EXPLMODE") 1))
  (setvar "EXPLMODE"
1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
  (setvar
"HIGHLIGHT" 1)
)
(if (not (= (getvar "HPDRAWORDER") 1))
 
(setvar "HPDRAWORDER" 1)
)
(if (not (= (getvar "MENUECHO")
2))
  (setvar "MENUECHO" 2)
)
(if (not (= (getvar "OSNAPZ")
1))
  (setvar "OSNAPZ" 1)
)
(if (not (= (getvar "TEXTQLTY")
100))
  (setvar "TEXTQLTY" 100)
)
(if (not (= (getvar
"TSPACEFAC") 1.0))
  (setvar "TSPACEFAC" 1.0)
)
(if (not (=
(getvar "TSPACETYPE") 2))
  (setvar "TSPACETYPE" 2)
)

 

You can explore all these variable in you help files.  The format
of the "if" statement is fairly clear, get the variable, test it versus the
value, if it is not equal, set the variable correctly.


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
Thanks
for the reply. How would I do that? I have a custom .lsp file that loads
on startup, but the only thing I know how to do is to be able to set up a
lisp routine to turn it off using a keyboard shortcut after the program
has loaded. How would I make it run automatically when AutoCAD is loaded?
Thanks again for your
help.
*Some Buddy
Message 8 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 02:37 PM in reply to: Anonymous

Thanks.


--
Humans are born with a wide horizon.
As time goes by, the
horizon narrows and
narrows, until it becomes a point of view.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Tim Decker" <t o d e c k e r @ h o t m a i l . c o m> a écrit dans
le message de news:
href="mailto:6150258@discussion.autodesk.com">6150258@discussion.autodesk.com
...


Personal preference and application for the first
(with only a single item to eval per expression, I don't need the multiple
numstr comparison of /=, same with using = instead of equal, no need for fuzz
ever for any of my variables), and ease of consistency for the second. 
ZEROP only works for test resolving 0[.0] as the operator, mine I kept as
generic as possible, for a single expression to test for anything, intger,
real, string, etc. of any value.  For me it's the best of both
worlds.  I supposed, if I actually wanted, I could have made a single
compare function and referenced it repeatedly with (compare VARIABLE
VALUE) for each test, then set the function to nil when finished with it, but
I hate making functions, just for their own sake.

 

If I really wanted to get obtuse, I could have
written it backwards, testing for =, and using an elseexpr in the if
function.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Hi Tim,

 

I was just wondering,
size=2>why

 

(if (not (= (getvar "DEFAULTGIZMO")
3))


instead of

 

(if (/= (getvar "DEFAULTGIZMO") 3)

 

and why

 

(if (not (= (getvar "CMDECHO") 0))

 

instead of

 

(if (not (zerop (getvar "CMDECHO")))

 

--
Humans are born with a wide horizon.
As time goes by, the
horizon narrows and
narrows, until it becomes a point of view.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Tim Decker" <t o d e c k e r @ h o t m a i l . c o m> a écrit
dans le message de news:
href="mailto:6150096@discussion.autodesk.com">6150096@discussion.autodesk.com
...


If you don't know how, or don't have, an
acaddoc.lsp file in your support directory, the easiest way is to use the
"Startup Suite" option in the APPLOAD command.  It will load a lisp
file automatically on startup for all your drawings.  This of course
means you will need a lisp file for it to load.  Lisp files are easy
to make, they are Notepad ascii files with a .lsp extension (no
.txt).  The text you will place in you lisp file is in the following
format:

 

(if (not (= (getvar "DEFAULTGIZMO")
3))
  (setvar "DEFAULTGIZMO" 3)
)

 

I find this a good general test routine for
all variables you want set, regardless of whether they are saved or
not.  Some other variable that are not saved, bu may be usefull
are:


(if (not (= (getvar "BINDTYPE") 1))
  (setvar "BINDTYPE"
1)
)
(if (not (= (getvar "CMDECHO") 0))
  (setvar "CMDECHO"
0)
)
(if (not (= (getvar "EXPERT") 1))
  (setvar "EXPERT"
1)
)
(if (not (= (getvar "EXPLMODE") 1))
  (setvar
"EXPLMODE" 1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
 
(setvar "HIGHLIGHT" 1)
)
(if (not (= (getvar "HPDRAWORDER")
1))
  (setvar "HPDRAWORDER" 1)
)
(if (not (= (getvar
"MENUECHO") 2))
  (setvar "MENUECHO" 2)
)
(if (not (=
(getvar "OSNAPZ") 1))
  (setvar "OSNAPZ" 1)
)
(if (not (=
(getvar "TEXTQLTY") 100))
  (setvar "TEXTQLTY" 100)
)
(if
(not (= (getvar "TSPACEFAC") 1.0))
  (setvar "TSPACEFAC"
1.0)
)
(if (not (= (getvar "TSPACETYPE") 2))
  (setvar
"TSPACETYPE" 2)
)

 

You can explore all these variable in you help files.  The
format of the "if" statement is fairly clear, get the variable, test it
versus the value, if it is not equal, set the variable
correctly.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Thanks
for the reply. How would I do that? I have a custom .lsp file that loads
on startup, but the only thing I know how to do is to be able to set up
a lisp routine to turn it off using a keyboard shortcut after the
program has loaded. How would I make it run automatically when AutoCAD
is loaded? Thanks again for your
help.
*Tony Tanzillo
Message 9 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-26-2009 07:37 PM in reply to: Anonymous
Actuallly, how he writes his expressions is not an issue
that merits discussing, or at least not in this newsgroup.

But, what is an issue is that he shouldn't set variables
that are not saved in the drawing, from a LSP file that
loads with every drawing file. If the variable is not saved
in the drawing then it has 'application scope', and only
needs to be set once when AutoCAD starts (e.g., using
an ACAD.LSP file with AutoCAD set to load it only once
when the application starts).

ACADDOC.LSP is where you put code that must run
every time a drawing is opened.

ACAD.LSP is where you put code that must run only
once, when AutoCAD starts.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


"Some Buddy" wrote in message
news:6150156@discussion.autodesk.com...
Hi Tim,

I was just wondering, why

(if (not (= (getvar "DEFAULTGIZMO") 3))

instead of

(if (/= (getvar "DEFAULTGIZMO") 3)

and why

(if (not (= (getvar "CMDECHO") 0))

instead of

(if (not (zerop (getvar "CMDECHO")))


--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.
"Tim Decker" a écrit dans le
message de news: 6150096@discussion.autodesk.com...
If you don't know how, or don't have, an acaddoc.lsp file in your support
directory, the easiest way is to use the "Startup Suite" option in the
APPLOAD command. It will load a lisp file automatically on startup for all
your drawings. This of course means you will need a lisp file for it to
load. Lisp files are easy to make, they are Notepad ascii files with a .lsp
extension (no .txt). The text you will place in you lisp file is in the
following format:

(if (not (= (getvar "DEFAULTGIZMO") 3))
(setvar "DEFAULTGIZMO" 3)
)

I find this a good general test routine for all variables you want set,
regardless of whether they are saved or not. Some other variable that are
not saved, bu may be usefull are:

(if (not (= (getvar "BINDTYPE") 1))
(setvar "BINDTYPE" 1)
)
(if (not (= (getvar "CMDECHO") 0))
(setvar "CMDECHO" 0)
)
(if (not (= (getvar "EXPERT") 1))
(setvar "EXPERT" 1)
)
(if (not (= (getvar "EXPLMODE") 1))
(setvar "EXPLMODE" 1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
(setvar "HIGHLIGHT" 1)
)
(if (not (= (getvar "HPDRAWORDER") 1))
(setvar "HPDRAWORDER" 1)
)
(if (not (= (getvar "MENUECHO") 2))
(setvar "MENUECHO" 2)
)
(if (not (= (getvar "OSNAPZ") 1))
(setvar "OSNAPZ" 1)
)
(if (not (= (getvar "TEXTQLTY") 100))
(setvar "TEXTQLTY" 100)
)
(if (not (= (getvar "TSPACEFAC") 1.0))
(setvar "TSPACEFAC" 1.0)
)
(if (not (= (getvar "TSPACETYPE") 2))
(setvar "TSPACETYPE" 2)
)

You can explore all these variable in you help files. The format of the
"if" statement is fairly clear, get the variable, test it versus the value,
if it is not equal, set the variable correctly.

wrote in message news:6150050@discussion.autodesk.com...
Thanks for the reply. How would I do that? I have a custom .lsp file
that loads on startup, but the only thing I know how to do is to be able to
set up a lisp routine to turn it off using a keyboard shortcut after the
program has loaded. How would I make it run automatically when AutoCAD is
loaded? Thanks again for your help.
*Tim Decker
Message 10 of 10 (382 Views)

Re: How to keep DEFAULTGIZMO setting after program restart

03-27-2009 02:05 PM in reply to: Anonymous
The point WAS that I told him he COULD put it in one of those types of
files, but he did not use those. So, the solution worked for him, in his
situation, and custom setup.

However, you are correct in the overall, and you could do what you suggest.

However, some of the variables listed (like HIGHLIGHT) have a tendancy to
get flipped by many routines, and can get thrown off. That is why I
generally only recommend placing them in a place that loads for each drawing
(ie. acaddoc.lsp); so that just in case they inadvertantly get changed mid
drawing session, as soon as the next drawing loads, they will be reset
overall again, and the user has no idea anything every went wrong in the
first place.

Just for explanations sake.

"Tony Tanzillo" wrote in message
news:6150405@discussion.autodesk.com...
Actuallly, how he writes his expressions is not an issue
that merits discussing, or at least not in this newsgroup.

But, what is an issue is that he shouldn't set variables
that are not saved in the drawing, from a LSP file that
loads with every drawing file. If the variable is not saved
in the drawing then it has 'application scope', and only
needs to be set once when AutoCAD starts (e.g., using
an ACAD.LSP file with AutoCAD set to load it only once
when the application starts).

ACADDOC.LSP is where you put code that must run
every time a drawing is opened.

ACAD.LSP is where you put code that must run only
once, when AutoCAD starts.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


"Some Buddy" wrote in message
news:6150156@discussion.autodesk.com...
Hi Tim,

I was just wondering, why

(if (not (= (getvar "DEFAULTGIZMO") 3))

instead of

(if (/= (getvar "DEFAULTGIZMO") 3)

and why

(if (not (= (getvar "CMDECHO") 0))

instead of

(if (not (zerop (getvar "CMDECHO")))


--
Humans are born with a wide horizon.
As time goes by, the horizon narrows and
narrows, until it becomes a point of view.
"Tim Decker" a écrit dans le
message de news: 6150096@discussion.autodesk.com...
If you don't know how, or don't have, an acaddoc.lsp file in your support
directory, the easiest way is to use the "Startup Suite" option in the
APPLOAD command. It will load a lisp file automatically on startup for all
your drawings. This of course means you will need a lisp file for it to
load. Lisp files are easy to make, they are Notepad ascii files with a .lsp
extension (no .txt). The text you will place in you lisp file is in the
following format:

(if (not (= (getvar "DEFAULTGIZMO") 3))
(setvar "DEFAULTGIZMO" 3)
)

I find this a good general test routine for all variables you want set,
regardless of whether they are saved or not. Some other variable that are
not saved, bu may be usefull are:

(if (not (= (getvar "BINDTYPE") 1))
(setvar "BINDTYPE" 1)
)
(if (not (= (getvar "CMDECHO") 0))
(setvar "CMDECHO" 0)
)
(if (not (= (getvar "EXPERT") 1))
(setvar "EXPERT" 1)
)
(if (not (= (getvar "EXPLMODE") 1))
(setvar "EXPLMODE" 1)
)
(if (not (= (getvar "HIGHLIGHT") 1))
(setvar "HIGHLIGHT" 1)
)
(if (not (= (getvar "HPDRAWORDER") 1))
(setvar "HPDRAWORDER" 1)
)
(if (not (= (getvar "MENUECHO") 2))
(setvar "MENUECHO" 2)
)
(if (not (= (getvar "OSNAPZ") 1))
(setvar "OSNAPZ" 1)
)
(if (not (= (getvar "TEXTQLTY") 100))
(setvar "TEXTQLTY" 100)
)
(if (not (= (getvar "TSPACEFAC") 1.0))
(setvar "TSPACEFAC" 1.0)
)
(if (not (= (getvar "TSPACETYPE") 2))
(setvar "TSPACETYPE" 2)
)

You can explore all these variable in you help files. The format of the
"if" statement is fairly clear, get the variable, test it versus the value,
if it is not equal, set the variable correctly.

wrote in message news:6150050@discussion.autodesk.com...
Thanks for the reply. How would I do that? I have a custom .lsp file
that loads on startup, but the only thing I know how to do is to be able to
set up a lisp routine to turn it off using a keyboard shortcut after the
program has loaded. How would I make it run automatically when AutoCAD is
loaded? Thanks again for your help.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.