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 currentallocsetting.
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)returns82, 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.
Source Notes
- [expand (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-48C99C97-176D-4D9C-91E2-31B3C67D6EC9.htm)
- Status: documented (Phase 3 body fill).