本帖最后由 kucha007 于 2025-3-29 14:47 编辑
移除多行文字格式,有时候蛮有用的
 - (defun RmvMtext (mtext)
- (setpropertyvalue
- mtext
- "Contents"
- (vl-string-translate "\r\n" "\\P" (getpropertyvalue mtext "Text"))
- )
- )
例如只加宽度可以这样用:
 - (setpropertyvalue
- mtext
- "Contents"
- (strcat
- "{\\W"
- (rtos 0.75 2 2)
- ";"
- (RmvMtext mtext)
- "}"
- )
- )
|