(vl-load-com) (defun c:test( / ss i ent len pt lst) (setq ss (ssget '((0 . "line,polyline,lwpolyline,arc")))) (setq i 0) (repeat (sslength ss) (setq ent (ssname ss i)) (setq len (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))) (setq pt (vlax-curve-getStartPoint ent)) (setq lst (append lst (list (list len (angle '(0 0 0) pt))))) (setq i (1+ i)) ) (princ lst) (princ) )