4490| 14
|
[已解答] 求去除文字最前面和最后面空格,中间空格不去除 |
4明经币
最佳答案(defun c:tt ( / dxf1 e el i ss)
(vl-cmdf "justifytext" (ssget "x" '((0 . "*text"))) "" "l")
(if (setq ss (ssget "x" '((0 . "*text"))))
(repeat (setq i (sslength ss))
(setq e (ssname ss (setq i (1- i)))
el (entget e)
dxf1 (assoc 1 el)
)
(entmod (subst
(cons 1 (vl-string-trim " " (cdr dxf1)))
dxf1
el
)
)
)
)
)
| ||
点评
太精辟了
| ||
| ||
| ||
| |
| |
点评
“只对来件负责”
| |
| |