我编制的一段程序,程序中的d的值老是被p代替,
造成错误,哪位大侠快点帮忙,我等急用。
(defun c:sy()
(setq pa (getpoint "基点:"))
(setq d (getint "\nd:"))
(cond ((= d 12) (setq l 40) (setq p 21.9))
((= d 16) (setq l 50) (setq p 27.7))
((= d 20) (setq l 60) (setq p 34.6))
((= d 24) (setq l 75) (setq p 41.6))
((= d 30) (setq l 90) (setq p 53.1))
((= d 36) (setq l 110) (setq p 63.5))
((= d 42) (setq l 130) (setq p 75))
((= d 48) (setq l 160) (setq p 85.5))
(t (princ "\n没有此值"))
)
(setq pb (polar pa 0 l))
(setq pc (polar pa (* pi 0.5) (* 0.5 d)))
(setq pd (polar pc 0 l))
(setq pe (polar pa (* pi 0.5) (* 0.5 p)))
(setq pf (polar pe 0 l))
(command "pline" pa pb pf pe "c")
(command "line" pc pd "")
)