[求助]请帮忙编一个号码球小程序
下面的程序已测试通过,供参考:<BR>(defun c:hmq(/ p1 p2 p3 r hm th)<BR> (setq p1(getpoint "\n起点:"))<BR> (setq p3(getpoint p1 "放置点:"))<BR> (setq r(getdist "半径:"))<BR> (setq hm(getstring "号码:"))<BR> (if(and p1 p3 r hm)<BR> (progn<BR> (setq th 2.0)<BR> (setq p2(polar p3 (+(angle p1 p3) pi) r))<BR> (command "line" p1 p2 "")<BR> (command "circle" p3 r)<BR> (command "text" "j" "m" p3 th 0 hm)<BR> )<BR> )<BR>)<BR> <b>谢谢</b>
页:
[1]