Yes, by using free autolisp from web.
Other than dataextraction that takes ten pages to get total length, I still don't see why autodesk not making this an option in PROPERTIES.
You can find a lot of them ...
But here is a French routine (in Pure Lisp) to get the Total Length any standard entities ...
Routine : TL ( Loading with APPLOAD )
;; Totaux Longueur : ligne, arc, polyligne, cercle, spline, ellipse ;; par MNT Reponse No 18 ;; http://www.cadxp.com/modules.php?op=modload&name=X
Forum&file=viewthread&tid=2683#pid6828 (defun C:TL (/ ss tl n ent itm obj l) (setq ss (ssget) tl 0 n (1- (sslength ss))) (while (>= n 0) (setq ent (entget (setq itm (ssname ss n))) obj (cdr (assoc 0 ent)) l (cond ((= obj "LINE") (distance (cdr (assoc 10 ent))(cdr (assoc 11 ent)))) ((= obj "ARC") (* (cdr (assoc 40 ent)) (if (minusp (setq l (- (cdr (assoc 51 ent)) (cdr (assoc 50 ent))))) (+ pi pi l) l))) ((or (= obj "CIRCLE")(= obj "SPLINE")(= obj "POLYLINE") (= obj "LWPOLYLINE")(= obj "ELLIPSE")) (command "_.area" "_o" itm) (getvar "perimeter")) (T 0)) tl (+ tl l) n (1- n))) (alert (strcat "TOTAL Length= " (rtos tl))) (princ) )
The French routine TL, is in fact the TLEN routine coming from www.turvill.com
(So using TL or TLEN, it's exactly the same Lisp - Sorry the real author has been omitted on cadxp.com)
and it uses the .AREA which can (I agree) in some seldom case gives false results with the AREA
but I have never seen any error with the LENGTH !
ADDLEN.vlx (Command: ADDLEN) from www_cadstudio_cz
gives you the result in a SDF file (layer by layer) which is not very useful !?
Please find attached : DWG to test TL/TLEN/ADDLEN and the SDF coming from ADDLEN ...
I think that TL or TLEN is OK for the job required ...
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.