To create a variant containing an array of values (AutoLISP/ActiveX)

Safearrays are used in combination with ActiveX objects to represent points and matrixes.

Note: ActiveX support in AutoLISP is limited to Windows only.
  1. At the Visual LISP Console window or AutoCAD Command prompt, allocate the space for the array using vlax-make-safearray and save the results to a variable with setq.
  2. At the prompt, assign the values to the array using vlax-safearray-fill.
  3. At the prompt, create a variant using vlax-make-variant and assign it the array.

Example