Lisp lệnh DEMO trong chủ đề “Nhờ chỉnh sửa Lsp theo layers”
Của bạn đây:
(defun c:demo (/ ss)
(if
(setq ss (ssget "_:L" '((8 . "E-CAB-BORE-NP,E-CAB-PART-NP,E-CAB-POCKET-NP"))))
(command "PSELECT" ss "")
)
(princ)
)
(command "PROPERTIES")
(command "PROPERTIESCLOSE")
- Tải lisp
- 447331_demo.lsp
Cách dùng
- Tải tệp 447331_demo.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 DEMO để chạy lisp.
Mã nguồn 447331_demo.lsp
;; free lisp from cadviet.com
;;; this lisp was downloaded from https://www.cadviet.com/forum/topic/181694-nh%E1%BB%9D-ch%E1%BB%89nh-s%E1%BB%ADa-lsp-theo-layers/
(defun c:demo (/ ss)
(if
(setq ss (ssget "_:L" '((8 . "E-CAB-BORE-NP,E-CAB-PART-NP,E-CAB-POCKET-NP"))))
(command "PSELECT" ss "")
)
(princ)
)
(command "PROPERTIES")
(command "PROPERTIESCLOSE")Thảo luận gốc
Lisp được chia sẻ trong chủ đề Nhờ chỉnh sửa Lsp theo layers. Xem đúng bài viết #447331 để đọc hướng dẫn và trao đổi thêm.