[求助]如何进行符号库操作
<p>我编写的块名更改程序出错了,请各位指点正确的写法</p><p>;;;改块名<br/>(defun gkm (oldnm newnm / ent)<br/> (setq ent (entget (tblobjname "block" oldnm)))<br/> (setq ent1 (subst (cons 2 newnm) (assoc 2 ent) ent))<br/> (entmod ent1) ;;返回nil,操作失败<br/>)</p> <p>Visit here:</p><p><a href="http://forums.augi.com/showthread.php?t=117236">http://forums.augi.com/showthread.php?t=117236</a></p>
页:
[1]