expand

AutoCad AutoLISP Functions

 
expand
 
 
 

Allocates additional memory for AutoLISP

(expand n-expand)

Arguments

n-expand

An integer indicating the amount of additional memory to be allocated. Memory is allocated as follows:

  • n-alloc free symbols
  • n-alloc free strings
  • n-alloc free usubrs
  • n-alloc free reals
  • n-alloc * n-expand cons cells

where n-alloc is the current segment size.

Return Values

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

Examples

Set the segment size to 100:

_$ (alloc 100)
1000

Allocate memory for two additional segments:

_$ (expand 2)
82

This ensures that AutoLISP now has memory available for at least 200 additional symbols, strings, usubrs and reals each, and 8200 free conses.

See Also