Message 1 of 3

Not applicable
01-15-2017
10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys, i have this lisp routine (not written by me) that select block by its names where i can put block name in command line, i need tweaking for it to work on dynamic blocks as well.
(defun C:SELBLKN ( / e ss) ; by name (setq e (getstring T "\nType block name(s) to select (comma-delimited list or wildcards): ")) (if (> e "") (setq ss (ssget "_X" (list (cons 2 e)(cons 0 "INSERT"))))) (if (zerop (getvar "CMDACTIVE")) (progn (sssetfirst ss ss)(princ "Use 'P' for this selection set: ")(princ)) ss ) ) (princ "\nSELBLKN commands loaded.")(princ)
Regards
Amr Aly
Solved! Go to Solution.