setenv
 
 
 

Sets a system environment variable to a specified value

(setenv varname value) 

Arguments

varname

A string specifying the name of the environment variable to be set. Environment variable names must be spelled and cased exactly as they are stored in the system registry.

value

A string specifying the value to set varname to.

Return Values

value

Examples

The following command sets the value of the MaxArray environment variable to 10000:

Command: (setenv "MaxArray" "10000")

"10000"

Note that changes to settings might not take effect until the next time AutoCAD is started.

See Also