Here is one way:
Here is a 'cheats' way:Code:;; Selection Set Union - Lee Mac ;; Returns the union of a list of Selection Sets (defun LM:ss-union ( lst / out ) (setq lst (vl-sort lst '(lambda ( a b ) (> (sslength a) (sslength b)))) out (car lst) ) (foreach ss (cdr lst) (repeat (setq i (sslength ss)) (ssadd (ssname ss (setq i (1- i))) out) ) ) out )
Code:(defun ss-union ( lst ) (apply 'vl-cmdf (append '("_.select") lst '(""))) (ssget "_P") )






Reply With Quote
Bookmarks