;| From: Doug Broad - view profile Date: Tues, Feb 11 2003 4:56 am Email: "Doug Broad" <dbr...@earthlink.net> Luis, For 2D work with UCS = world this would be OK. If you have arcs in 3D or a current UCS <> World then you will have to do a lot more work. Also, in order to apply it within commands, you should either turn off osnaps or ... |; (defun midarc (ent / dxf ent info cen sa ea da ma) (defun dxf (k l) (cdr (assoc k l))) (and ent (setq info (entget ent)) (= "ARC" (dxf 0 info)) (setq cen (dxf 10 info)) ;center (setq sa (dxf 50 info)) ;start (setq ea (dxf 51 info)) ;end (setq da (- ea sa)) (setq da (if (minusp da) (+ (* 2 pi) da) da ) ) (setq ma (+ sa (/ da 2))) ) (if ma (polar cen ma (dxf 40 info)) ) ) |