ocengxh 发表于 2012-10-17 02:53:42

那位大侠看看这个命令怎么编

本帖最后由 ocengxh 于 2012-10-17 02:57 编辑

已知图中块的图块的名,想在位编辑命令(refedit),单想省去选择块的过程,指定块名字直接打开编辑。希望高手帮帮忙。给个源码LISP,

fcut2004 发表于 2012-10-17 08:39:52

(command "-refedit" "块名字")

ocengxh 发表于 2012-10-18 20:15:58

fcut2004 发表于 2012-10-17 08:39 static/image/common/back.gif
(command "-refedit" "块名字")

试过了不行这样好像不行吧

Gu_xl 发表于 2012-10-18 20:32:34

试试这个:
(command "bedit" 块名)

ocengxh 发表于 2012-10-19 01:50:59

想用在位编辑的编辑命令,这样可以设置快捷键之接编辑经常用的块

ocengxh 发表于 2012-10-20 17:19:15

(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:51:40

本帖最后由 背心 于 2012-10-24 11:52 编辑

我最近也要用refedit 命令做一个块中加入实体的小程序,
调用refedit 之后后面应该接什么呢?是图元名?还是块名字?
(command "_refedit" ss2 "o" "a" "y")
ss2 应该是什么?
页: [1]
查看完整版本: 那位大侠看看这个命令怎么编