# arc length

How would one find the length of an arc using autolisp?

<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
I think you need to calculate it using the object data, which is Radius(group code 40) and Start Angle and End Angle(group code 50).
--

MichaelB
www.michaelbulatovich.ca
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
HiHo; Here is a old one you can use the parts. ;CADENCE Magazine February 1992 ;Page 86

<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Thanks, I think I can make that work for what I am doing. Happy Autolisping

<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
(Dees) wrote:

This is one lisp available:
;|
DIMARC.LSP - Dimension an arc with length, rather than angle (c) 1998 Tee Square Graphics
|;
(defun C:DIMARC (/ arc ent obj l) (setq cmd (getvar "cmdecho") arc (entsel "\nPick ARC to dimension: ") ent (entget (car arc)) obj (cdr (assoc 0 ent))) (if (= obj "ARC") (progn (setvar "cmdecho" 1) (setq l (* (cdr (assoc 40 ent)) (if (minusp (setq l (- (cdr (assoc 51 ent)) (cdr (assoc 50 ent))))) (+ pi pi l) l))) (command "_.dimangular" arc "_t" (rtos l)) (while (= (logand (getvar "cmdactive") 1) 1) (command pause)) (setvar "cmdecho" cmd)) (alert "Object selected is not an ARC.")) (princ) )
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>