(defun c:test ( / end i lineobj num plst start)
(vl-load-com)
(setq lineObj (vlax-ename->vla-object (car (entsel "the polyline")))
start (vlax-curve-getStartParam lineObj)
end (vlax-curve-getEndParam lineObj)
i 0
)
(while (< i (setq num 100))
(setq plst (append
plst
(list (vlax-curve-getPointAtParam lineObj
(* i
(/
(- end start)
num
)
)
)