TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ribarm on May 06, 2019, 08:22:13 AM

Title: LWSETTINGS control
Post by: ribarm on May 06, 2019, 08:22:13 AM
I can't find what is contoling display quality from min to max value, like shown in attached picture...
It seems there is no sys var for this, so then how to code for average value as shown...
LWDISPLAY sys var is contoling ON/OFF state, but I need also quality of display control...

Thanks, M.R.
Title: Re: LWSETTINGS control
Post by: tombu on May 06, 2019, 08:45:51 AM
Code: [Select]
(getenv "LineWeightDisplayScale")
Title: Re: LWSETTINGS control
Post by: ribarm on May 06, 2019, 08:56:15 AM
Thanks, tombu, this is what I was looking for...
Title: Re: LWSETTINGS control
Post by: ribarm on May 07, 2019, 06:50:10 AM
@tombu, I don't want to disturb, but do you happen to have in your library lisp for checking all defined environment variables... I have one, but in my list "LineWeightDisplayScale" isn't listed...
Neither in this list - there are no "LineWeightDisplayScale" : https://www.afralisp.net/archive/lisp/enviro.htm

That's one thing... The second is, do you happen to know where is stored variable for turning on/off hardware acceleration under AutoCAD?

Many thanks, M.R.
Title: Re: LWSETTINGS control
Post by: ribarm on May 07, 2019, 08:01:49 AM
I figured out :

Quote
Command: (vl-cmdf "_.-GRAPHICSCONFIG" "_L" "_S" "_X") ;software acceleration
Command: (vl-cmdf "_.-GRAPHICSCONFIG" "_L" "_H" "_X") ;hardware acceleration

Still if you have a routine for environment variables listing (full listing), I'll be thankful if you share it...
Thanks...