AutoCAD/arc to circle

Advertisement


Question
hy, i have so much arc and i would like to change all my arcs to circle, how i can do this?

thanks


Answer
Just use a lisp below:

(defun c:cirmend (/ os pt2 a pt1 ra pt3)
       (setq os (getvar "osmode"))
       (setvar "osmode" 512)
       (setq pt2 (getpoint "\nPick one of the arcs "))
       (setq a (entget (ssname (ssget pt2) 0)))
       (setq pt1 (cdr (assoc 10 a)))
       (setq ra (cdr (assoc 40 a)))
       (command "erase" pt2 "")
       (setq pt3 (getpoint "\Pick other arc "))
       (setvar "osmode" os)
       (command "erase" pt3 "")
       (command "circle" pt1 ra)
       (princ)
)



This routine should close the open arc entity. Hope this helps, let me know!

Regards-
JB

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


J. B. Borge

Expertise

I can answer general questions about Autocad & Solid Works.

Experience

I've been in the 3D/2D CAD industry for over 16 yrs. & also had the opportunity/exposure to work with several mainstream design platforms including Helix Design Systems to Solid Works to Civil 3D.

Education/Credentials
Austin College, Tarrant County College, ITT

Awards and Honors
AUGI Top Dawg Dallas 2004

Past/Present Clients
Freightliner, Mac Trucks, Arctic Cat, Walmart, & Sam's Club

©2012 About.com, a part of The New York Times Company. All rights reserved.