Use this to see length as you pick each.
Code:
;; CAB 05/04/2005
;; Total length print
(defun c:tlength (/ en len lentotal typ)
(vl-load-com)
(setq lentotal 0)
(while (setq en (entsel "\nPick object for length."))
(setq en (car en))
(if (member (setq typ (cdr (assoc 0 (entget en))))
'("LWPOLYLINE" "POLYLINE" "LINE" "SPLINE" "ARC")
)
(progn
(setq len (vlax-curve-getdistatparam en (vlax-curve-getendparam en))
lentotal (+ len lentotal)
)
(prompt (strcat "\nLength of " typ " is " (rtos len)))
(prompt (strcat "\n*** Running Total is " (rtos lentotal) " ***"))
)
(prompt "\n*** Wrong type object, try again.")
)
)
(if lentotal
(prompt (strcat "\n*** Grand Total length is " (rtos lentotal) " ***"))
)
(princ)
)
(prompt "\nLength Total loaded, Enter tlength to run")
(princ)