775| 5
|
[提问] 求一个程序,框选更换格式 |
1明经币
最佳答案(defun c:tt1 ( / ss i ent entg str)
(if (not ss) (setq ss (ssget (list '(0 . "MTEXT,TEXT")))))
(setq i 0)
(repeat (sslength ss)
(setq ent (ssname ss i))
(setq entg (entget ent))
(setq str (vl-string-translate "." "-" (cdr (assoc 1 entg))))
(setq ent (subst (cons 1 str) (assoc 1 entg) entg))
(entmod ent)
(setq i (1+ i))
)
)
| ||
发表于 2021-7-28 08:09:49
|
显示全部楼层
| ||
| ||