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.
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.
At the prompt, assign the values to the array using vlax-safearray-fill.
At the prompt, create a variant using vlax-make-variant and assign it the array.
Example
At the Visual LISP Console window or AutoCAD Command prompt, enter the following