hello all, i have layers names starting w/ characters XXX and layer names starting w/ characters YYY how do i select all objects on layers not matching layer names XXX* or YYY* the following code is not doing the job (setq ss (ssget "X" (list (cons 8 "~XXX*,~YYY*"))) although the following works, (setq ss (ssget "X" (list (cons 8 "~XXX*")(cons 8 "~YYY*"))) but i would like it to do it in one shot. similarly if i want to purge all layers other than XXX* and YYY* the following is not working either (command "PURGE" "LA" "~XXX*,YYY*" "N") (command "PURGE" "LA" "~XXX*,~YYY*" "N") nor help will be greatly appreciated thanks