初用autolisp,想做一个环形相切圆的小程序,总是提示参数太少。。。(defun c:qy(/ b n a r r1 x) (setq b (getpoint "指定插入点:")) (setq r (getdist b "\n指定小圆半径:")) (setq n (getint "\n输入相切圆数量:")) (setq a (/ (* 2 pi) n)) (setq r1 (/ r (sin (/ a 2))))
(defun c:qy(/ b n a r r1 x)
(setq b (getpoint "指定插入点:"))
(setq r (getdist b "\n指定小圆半径:"))
(setq n (getint "\n输入相切圆数量:"))
(setq a (/ (* 2 pi) n))
(setq r1 (/ r (sin (/ a 2))))
(setq x (polar b (- (/ pi 2) (/ a 2)) r1))
(command "circle" b r)
(command "array" (entlast) "" "p" x n 360 "y")
(prin1)
)