?óng Ngo?c Text, Mtext, Dim
(defun c:fg(/ s)
(vl-load-com)
(ssget '((0 . "*TEXT")))
(vlax-for o (setq s(vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object))))
(vla-put-Textstring o (strcat "(" (vla-get-Textstring o) ")"))
)
(vla-delete s)
)
- Tải lisp
- 398227_fg.lsp
Cách dùng
- Tải tệp 398227_fg.lsp về máy.
- Trong AutoCAD gõ lệnh APPLOAD, chọn tệp vừa tải rồi bấm Load. Cũng có thể kéo thả tệp .lsp vào cửa sổ bản vẽ.
- Gõ lệnh FG để chạy lisp.
Mã nguồn 398227_fg.lsp
;; free lisp from cadviet.com
;;; this lisp was downloaded from https://www.cadviet.com/forum/topic/161551-%C4%91%C3%B3ng-ngo%E1%BA%B7c-text-mtext-dim/
(defun c:fg(/ s)
(vl-load-com)
(ssget '((0 . "*TEXT")))
(vlax-for o (setq s(vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object))))
(vla-put-Textstring o (strcat "(" (vla-get-Textstring o) ")"))
)
(vla-delete s)
)Thảo luận gốc
Lisp được chia sẻ trong chủ đề Đóng Ngoặc Text, Mtext, Dim. Xem đúng bài viết #398227 để đọc hướng dẫn và trao đổi thêm.