Function Entry: SETENV
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: SETENV
Name
setenv
Class
Function
Syntax
(setenv varname value)
Arguments and Values
varname: string; the environment-variable name (must match registry casing exactly).value: string; the value to assign.
Description
Sets the named environment variable to the given string. Some settings might not take effect until the next time AutoCAD is started.
Return Values
The value argument as a string.
Side Effects
Updates the environment-variable store.
Examples
(setenv "MaxArray" "10000")returns"10000".
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible.
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [setenv (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-0C2E8222-62A8-4529-8A8A-58AAB2A5F23B.htm)
- Status: documented (Phase 3 body fill).