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.