TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: 2e4lite on July 07, 2014, 10:19:55 PM

Title: About system environment variables
Post by: 2e4lite on July 07, 2014, 10:19:55 PM
How to get all system environment variables in the drawing and their current settings?
Title: Re: About system environment variables
Post by: Kerry on July 07, 2014, 11:21:12 PM
Command:
SETVAR
Enter variable name or [?]: ?
Enter variable(s) to list <*>: *

// or
Command: _.sysvdlg
Select SaveAll ...


Title: Re: About system environment variables
Post by: CAB on July 07, 2014, 11:24:45 PM
Old topic here: http://www.theswamp.org/index.php?topic=44891.0
Title: Re: About system environment variables
Post by: 2e4lite on July 08, 2014, 01:05:12 AM
Thank you for your quickly reply!
Title: Re: About system environment variables
Post by: rkmcswain on July 08, 2014, 09:31:55 AM
Quote from: 2e4lite
...system environment variables
Quote from: Kerry
SETVAR
Command: _.sysvdlg

OP said environment variables, which are different than "AutoCAD system variables"
If environment variables are really the desire here, see: http://www.hyperpics.com/downloads/resources/customization/autolisp/AutoCAD%20Environment%20Variable%20Quick%20Guide.pdf (http://www.hyperpics.com/downloads/resources/customization/autolisp/AutoCAD%20Environment%20Variable%20Quick%20Guide.pdf)
Title: Re: About system environment variables
Post by: Lee Mac on July 08, 2014, 01:06:10 PM
Another (http://bit.ly/1k2F2rX) (from gile)
Title: Re: About system environment variables
Post by: dgorsman on July 09, 2014, 12:43:51 PM
To be finicky, environment variables do not exist for drawings.  System variables, yes.  Some system variables are both.
Title: Re: About system environment variables
Post by: Kerry on July 09, 2014, 07:17:23 PM
To be finicky, environment variables do not exist for drawings.  System variables, yes.  Some system variables are both.

Yep.

And then there is the distinction between variables saved in the drawing and those saved in the profile and those saved in the registry.

... and then there is the fact that the documentation is a little skimpy ... a 9 year old pdf from an independant web site is hardly current documentation.
Title: Re: About system environment variables
Post by: rkmcswain on July 10, 2014, 07:53:05 AM
Quote from: Kerry
And then there is the distinction between variables saved in the drawing and those saved in the profile and those saved in the registry.

...and those not saved at all.