Message 1 of 7

Not applicable
06-26-2020
09:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Experts,
I have lisp code that can select the blocks entire drawing, But instead of that I need to select particular WINDOW area. Requesting to change the code as per requirement
(vl-load-com)
(defun c:SBN ( / bn ss i sn)
(if (and (setq bn (getstring "Block name: "))
(setq ss (ssget "_X" (list '(0 . "INSERT")
(cons 2 (strcat "`*U*," bn))))))
(repeat (setq i (sslength ss))
(if (not (wcmatch (vla-get-effectivename (vlax-ename->vla-object (setq sn (ssname ss (setq i (1- i)))))) bn))
(ssdel sn ss))))
(if ss (sssetfirst nil ss))
(princ)
)
Thanks & Regards,
T.Brahmanandam
Solved! Go to Solution.