(原创)标注图层的转换等程序
<p>;;复制标注,移动标注,改变标注的图层,skydie,20061209</p><p><br/>(defun c:sdim ()<br/> <br/> (princ "\n请选取对象...")<br/> (setq kk (ssget))<br/> (setq n(sslength kk))<br/> (setq k 0 f (ssadd) kkk 0) <br/> (repeat n<br/> (setq ee (ssname kk k))<br/> (setq en (entget ee))<br/> (setq dd (cdr (assoc 0 en)))<br/> (if (= dd "DIMENSION")<br/> (progn <br/> (setq f (ssadd ee f))<br/> (setq kkk (1+ kkk))<br/> )<br/> )<br/> (setq k (1+ k))<br/> )<br/> (if (> kkk 0) <br/> (progn <br/> (initget "c C m M L l")<br/> (setq tt (getkword "\n复制(c),移动(m),改变图层(1),<Enter默认为复制>:"))<br/> (if (= tt nil ) (setq tt "C" ))<br/> (setq tt (strcase tt))<br/> (cond (( = tt "C") (command "copy" f "" pause pause))<br/> (( = tt "M") (command "move" f "" pause pause))<br/> (( = tt "L") (progn <br/> (setq newla (getstring "\n输入新图层名:"))<br/> (setq chklay (tblsearch "layer" newla)) (if (= chklay nil) (command "layer" "n" newla "c" "5" newla "Lw" "0.1" newla "" ))<br/> (command "chprop" f "" "LA" newla "")<br/> )<br/> )<br/> )<br/> )<br/> (alert" 警告:没有标注尺寸!")<br/> )<br/> <br/> (princ)<br/> <br/> )</p> <p>这个程序一点也不实用,</p> 我觉得要是能用鼠标滚动修改标注文字的大小就好了 好多都有....................
页:
[1]