Function Entry: EXPAND

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

Function Entry: EXPAND

Name

expand

Class

Function

Syntax

(expand n-expand)

Arguments and Values

  • n-expand: integer; the number of additional segments to allocate. Each segment provides space for further symbols, strings, usubrs, reals, and cons cells based on the current alloc setting.

Description

Allocates additional memory for AutoLISP. The granularity of each segment is controlled by the prior alloc call.

Return Values

An integer: the number of free conses divided by n-alloc.

Side Effects

Grows the AutoLISP heap by n-expand segments.

Examples

After (alloc 100) returns 1000:

  • (expand 2) returns 82, providing 200+ additional symbols/strings/usubrs/reals plus 8200 available cons cells.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible (memory-knob behaviour may differ).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.