To be clear what I meant is the periphery of a circle,thanks....
Registered forum members do not see this ad.
Hi All,
I wanna measure automatically the total length of lines,circles,etc. which are on the model. Is there a command or script for this??? Thanks
To be clear what I meant is the periphery of a circle,thanks....



have you had a look at these
(sorry broken link)
If none of these suit , just give us a shout..![]()
periphery of a circle....circumference
Last edited by PS_Port; 8th Jun 2008 at 02:10 pm.
If at first you don't succeed, then maybe failure is more your style.
here's a lisp that i did not create
Code:;| TLEN.LSP - Total LENgth of selected objects (c) 1998 Tee Square Graphics |; (defun C:TLEN (/ 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 of selected objects is " (rtos tl))) (princ) )
Quote by George (AWDC Malta President) about Land Rovers:
"Trid ittiha xebgħa mazza ta' bla raġuni"
Translation: You have to attack it with a mallet for no reason at all"
PSPort- your link is broken...
Chris, TLEN is the answer I would have suggested to your first post, but your second post just asks about the circumference? Then you just need to highlight the circle and look in PROPERTIES.
"To alcohol; the cause and solution to all of life's problems." - Homer Simpson

Registered forum members do not see this ad.
Dear all this is my first post on the forum.
Little about me; I am good with excel and VBA, but very much new to Lisp. I have with me Tlen and LA lisp commands. Both are working very well.
Can any body help me to join both of these. By this I may be able to find the length of a closed body as well as the enclosed area at the same time. It should be written in the region itself.
Last edited by vipulgos; 18th Nov 2008 at 03:15 pm.
Bookmarks