PDA

View Full Version : Setvar



happyunited
5th Mar 2007, 03:31 pm
iv changed my text style var and textsize var to the ones i use most, but when i shut down that drawing it resets back to the default one :(

is there a way to keep it the var you want it?

dbroada
5th Mar 2007, 03:44 pm
it depends where the variable is stored. Check the system variable editor in express tools for the listing. If it is stored in the registry what you have done will work. If it is stored in the drawing (such as the ones you have changed) are best stored in you default .dwt file. Other just aren't stored and have to be re-done every time. (donut is one of these)

lpseifert
5th Mar 2007, 03:45 pm
If you want to set the vars for every drawing you open, put something similar to these lines in your acaddoc.lsp file
(setvar "textstyle" "Leroy")
(setvar "textsize" 0.1)

The variables are saved in the drawing, so if they are resetting from the values that you last saved, then it could be something in your startup applications or a 3rd party app that is causing the problems.

happyunited
5th Mar 2007, 03:56 pm
it depends where the variable is stored. Check the system variable editor in express tools for the listing. If it is stored in the registry what you have done will work. If it is stored in the drawing (such as the ones you have changed) are best stored in you default .dwt file. Other just aren't stored and have to be re-done every time. (donut is one of these)


so what your saying is that textstyle and textsize will only be applied for that drawing you have changed them in and wont work across the board?

dbroada
5th Mar 2007, 04:04 pm
I think so!

I'm actually in an InTools training session atm so don't have access to AutoCAD but I am sure textstyle is stored by drawing. The font used for that style is also stored by drawing so on a virgin instal the STANDARD style will be associated with txt.shx while all machines with changed dwt files will have simplex.shx

happyunited
5th Mar 2007, 04:07 pm
So Say I Make The Changes I Want And Save Them To The Defult.svf File It Shoudl Keep? Or Maybe Not?

dbroada
5th Mar 2007, 05:00 pm
no.
Open your default drawing template (I use acadiso.dwt) and save changes there. Now each time you start a NEW drawing the updated variables will be set.

happyunited
5th Mar 2007, 05:33 pm
ah that will do, thank for your help again.

happyunited
12th Oct 2007, 03:14 pm
sorry to bring up an old topic but when i got 2008 i lost these settings.

so i need to set my variable up in each template for these text setting to appear in every drawing?

Alan Cullen
12th Oct 2007, 03:44 pm
Yeah, unless you still have the old dwt files there, just copy them across.

SLW210
12th Oct 2007, 04:12 pm
sorry to bring up an old topic but when i got 2008 i lost these settings.

so i need to set my variable up in each template for these text setting to appear in every drawing?

You should be able to use the same template files unless you did not save them as a custom dwt.

An easy way to reset your template file is to open one of the old drawings and save that setup as a new dwt.