ghl_729
发表于 2010-6-13 10:35:00
<p><font face="Verdana">;;;;;;;;;;;;;;;标注点的坐标;;;;;;;;;;;;;;;;;;;;;<br/>(defun c:xy3()<br/> (command "osnap" "nod,end,cen")<br/> (setq pt (getpoint "\n请选择一点:"))<br/> (command "osnap" "off")</font></p>
<p><font face="Verdana"> (setq pt1 (getpoint pt "\n请选择标注的位置:"))<br/> (command "line" pt pt1 "")<br/> (setq pt2 (getpoint pt1 "\n请选择标注的方向:"))</font></p>
<p><font face="Verdana"> '(setq i (getreal "\n请输入字体高度:"))<br/> (command "osnap" "off")<br/> (setq ang (angle pt1 pt2))<br/> '(setq pt2 (polar pt ang 0.5))<br/> (setq x (rtos (cadr pt) 2 3)) <br/> (setq y (rtos (car pt) 2 3))<br/> (setq c1 (+ ang 1.5707963))<br/> (setq c2 (- ang 1.5707963))<br/> (setq pt3 (polar pt1 c2 2.5))<br/> (setq pt4 (polar pt1 c1 0.5))</font></p>
<p><font face="Verdana"> (setq a (strcat "X=" X))<br/> (setq b (strcat "Y=" Y))<br/> (setq le (- (* (strlen a) 2) 3))<br/> (setq jd (/ (* 180 ang) 3.1415926))<br/> (command "text" pt4 1.5 jd a)<br/> (command "text" pt3 1.5 jd b)<br/> <br/> (command "line" pt1 (polar pt1 ang le) "" )<br/> <br/>)<br/></font></p>
lsj123lsj123
发表于 2010-6-16 17:39:00
感谢楼主共享
liminnet
发表于 2010-6-29 14:00:00
xbswbxx
发表于 2010-7-7 20:00:00
这个程序比以前自己用的那个坐标标注程序强多了,谢谢
liminnet
发表于 2010-8-7 14:39:00
lty
发表于 2010-8-19 17:07:00
好 顶!!!!!!!
terry_uhc
发表于 2011-1-29 09:26:56
第一次来,哈不错!
terry_uhc
发表于 2011-1-29 09:27:42
值得向各位学习了!多多指教!谢谢!
sg001833
发表于 2012-4-11 12:49:53
下载一个看看
qhh6066
发表于 2013-12-15 15:38:50
能分享源码就好了!!