为什么块中的text和mtext,不会立即变过来
www.dimcax.com
为什么块中的text和mtext,不会立即变过来
命令: (setq ccc (entget (car (nentsel))))
选择对象: ((-1 . <图元名: 7ed03720>) (0 . "attrib") (330 . <图元名: 7ed03718>) (5 .
"6de4") (100 . "acdbentity") (67 . 0) (410 . "model") (8 . "0") (100 .
"acdbtext") (10 560901.0 -115390.0 0.0) (40 . 122.5) (1 . "张伟平") (50 . 0.0) (41
. 1.0) (51 . 0.0) (7 . "standard") (71 . 0) (72 . 0) (11 0.0 0.0 0.0) (210 0.0
0.0 1.0) (100 . "acdbattribute") (2 . "审核人") (70 . 0) (73 . 0) (74 . 0) (280 .
0))
命令: (entmod (subst (cons 1 "sss中一ddd") (assoc 1 ccc) ccc))
((-1 . <图元名: 7ed03720>) (0 . "attrib") (330 . <图元名: 7ed03718>) (5 . "6de4")
(100 . "acdbentity") (67 . 0) (410 . "model") (8 . "0") (100 . "acdbtext") (10
560901.0 -115390.0 0.0) (40 . 122.5) (1 . "sss中一ddd") (50 . 0.0) (41 . 1.0) (51
. 0.0) (7 . "standard") (71 . 0) (72 . 0) (11 0.0 0.0 0.0) (210 0.0 0.0 1.0)
(100 . "acdbattribute") (2 . "审核人") (70 . 0) (73 . 0) (74 . 0) (280 . 0))
命令: (setq ccc (entget (car (nentsel))))
选择对象: ((-1 . <图元名: 7ed03670>) (0 . "text") (330 . <图元名: 7ed035b8>) (5 . "6dce")
(100 . "acdbentity") (67 . 0) (8 . "0") (100 . "acdbtext") (10 -177.586 26.458
0.0) (40 . 3.74659) (1 . "审 核") (50 . 0.0) (41 . 0.8) (51 . 0.0) (7 .
"standard") (71 . 0) (72 . 0) (11 0.0 0.0 0.0) (210 0.0 0.0 1.0) (100 .
"acdbtext") (73 . 0))
命令: (entmod (subst (cons 1 "sss中一ddd") (assoc 1 ccc) ccc))
((-1 . <图元名: 7ed03670>) (0 . "text") (330 . <图元名: 7ed035b8>) (5 . "6dce") (100
. "acdbentity") (67 . 0) (8 . "0") (100 . "acdbtext") (10 -177.586 26.458 0.0)
(40 . 3.74659) (1 . "sss中一ddd") (50 . 0.0) (41 . 0.8) (51 . 0.0) (7 .
"standard") (71 . 0) (72 . 0) (11 0.0 0.0 0.0) (210 0.0 0.0 1.0) (100 .
"acdbtext") (73 . 0))
命令: re regen 正在重生成模型。
以上是命令行操作过程
为什么选中块中的文字和多行文字更新内容后,怎么不会立即显示新内容出来呢,而是还要re一次,而属性值却不会,而如果不是块中的文字和多行文字却更新后新内容立即显示出来的,有办法解决吗?
d
update
d
(defun c:t ()
(setq ccc (entget (setq c (car (nentsel)))))
(entmod (subst (cons 1 "sss中一ddd") (assoc 1 ccc) ccc))
(vla-update (vlax-ename->vla-object c))
)
是不是这样子,老大
d
要 update 父图元,而不是子图元
d
(defun c:t ()
(setq ccc (entget (car (setq c (nentsel)))))
(entmod (subst (cons 1 "sss中一ddd") (assoc 1 ccc) ccc))
(vla-update (ena->vla (car (last c))))
)
还是不行呢
d
再次求助]