this testit fuction show how to get the startpoint of a line to a list
the code well error IFa line, arc or ellipse is not select
Code:
(defun c:testit()
(setq entname (car (entsel)));get entity name
(setq obj (vlax-ename->vla-object entname));set to a vla-object
(setq sp (VLA-GET-STARTPOINT obj));get the startpoint this is a variant
(setq sp2 (vlax-variant-value sp));get the value of the variant this is a safearray
(setq sp3 (vlax-safearray->list sp2));change the safearray to a list
;;the next line dose it in one line
(setq x (vlax-safearray->list(vlax-variant-value(vla-get-startpoint obj))))
)