Function Entry: SETCFG

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: SETCFG

Name

setcfg

Class

Function (obsolete)

Syntax

(setcfg cfgname cfgval)

Arguments and Values

  • cfgname: string of the form `"AppData/applicationname/sectionname/…/paramname"`, up to 496 characters.
  • cfgval: string up to 512 characters; longer values are written but cannot be retrieved.

Description

Obsolete. Writes application data to the AppData section of the acad20xx.cfg file. Autodesk recommends vl-registry-write for new code.

Return Values

The cfgval string on success, or nil if cfgname is invalid.

Side Effects

Writes to the AutoCAD configuration file.

Examples

  • (setcfg "AppData/ArchStuff/WallThk" "8") returns "8".

Availability

  • AutoCAD 2026: documented (obsolete; use vl-registry-write).
  • BricsCAD V26: presumed compatible (obsolete behaviour).
  • Status: AutoCAD documented as obsolete; BricsCAD presumed-both pending Phase 4 verification.