(defun UNION (A B /)
(command "_.select" A B "")
(setq A (ssget "p"))
)
(defun SUBTRACT (A B /)
(command "_.select" A "r" B "")
(setq A (ssget "p"))
)
(defun INTERSECT (A B / C)
(command "_.select" A "r" B "")
(setq C (ssget "p"))
(command "_.select" A "r" C "")
(setq A (ssget "p"))
)