You are on page 1of 1

(defun C:TLEN (/ ss tl ent)

(setq

ss (ssget '((0 . "LINE,ARC,CIRCLE,*POLYLINE,SPLINE,ELLIPSE")))

tl 0

); end setq

(repeat (sslength ss)

(setq

ent (ssname ss 0)

tl

tl

(vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))

); end & tl

); end setq

(ssdel ent ss)

); end repeat

(alert (strcat "Total length of selected objects is " (rtos tl)))

(princ)

); end defun

You might also like