Draw circle

Draw circle

vasilev1566
Observer Observer
898 Views
3 Replies
Message 1 of 4

Draw circle

vasilev1566
Observer
Observer

Hello, I am new to the forum and have the following question.

How do I make a lisp file that can be called with a command (for example CVV) that starts circle command.

First I want to indicate where to make my circle - to indicate its center. It should have a radius equal to the distance between two points that I want to indicate from the drawing.

0 Likes
Accepted solutions (1)
899 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant
Accepted solution

Simple enough

 

(defun c:CircleM ( / c r)
  (if (and (setq c (getpoint "\nSpecify center point: "))
	   (setq r (getdist "\nRadius: "))
	   )
    (command "_.circle" "_non" c r))
  (princ)
  )

 

0 Likes
Message 3 of 4

vasilev1566
Observer
Observer
Thank you very much
0 Likes
Message 4 of 4

Kent1Cooper
Consultant
Consultant

Or just:

(defun C:CR2P () ; = Circle with Radius by 2 Points
  (command "_.circle" pause (getdist "\nRadius by two points: "))
  (prin1)
)
Kent Cooper, AIA
0 Likes