那位大侠看看这个命令怎么编
本帖最后由 ocengxh 于 2012-10-17 02:57 编辑已知图中块的图块的名,想在位编辑命令(refedit),单想省去选择块的过程,指定块名字直接打开编辑。希望高手帮帮忙。给个源码LISP, (command "-refedit" "块名字") fcut2004 发表于 2012-10-17 08:39 static/image/common/back.gif
(command "-refedit" "块名字")
试过了不行这样好像不行吧
试试这个:
(command "bedit" 块名) 想用在位编辑的编辑命令,这样可以设置快捷键之接编辑经常用的块 (setq ss (ssget "x" (list (cons 0 "INSERT")
(cons 2 "tt")
(cons 8 "0")
)
)
)
(setq ent1 (entget (ssname ss 0)))
(setq en (cdr (assoc -1 ent1)))
(command "-REFEDIT" en) 本帖最后由 背心 于 2012-10-24 11:52 编辑
我最近也要用refedit 命令做一个块中加入实体的小程序,
调用refedit 之后后面应该接什么呢?是图元名?还是块名字?
(command "_refedit" ss2 "o" "a" "y")
ss2 应该是什么?
页:
[1]