Sets a system environment variable to a specified value
(setenv varname value)
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.
A string specifying the value to set varname to.
MaxArray environment variable to 10000:The following command sets the value of the
Command: (setenv "MaxArray" "10000")
Note that changes to settings might not take effect until the next time AutoCAD is started.