Looking for lisp to draw circle

Looking for lisp to draw circle

Anonymous
Not applicable
3,872 Views
2 Replies
Message 1 of 3

Looking for lisp to draw circle

Anonymous
Not applicable
Hi,
I need lisp to draw circle using coordinate with specific diameter.
0 Likes
3,873 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

(defun c:D10 () (command "_circle" pause "_Diameter" 10) (princ))

If you want to use some specific coordinates, use
(defun c:D10 () (command "_circle" "_non" '(10 20 0) "_Diameter" 10) (princ))

0 Likes
Message 3 of 3

Ranjit_Singh
Advisor
Advisor

Another option

(defun c:somefunc ( / ) 
  (entmake (list '(0 . "circle") (cons 10 '(1 1 0)) '(40 . 5.0))))

will draw circle with radius of 5 units at coordinate 1,1,0