i think i am having a brain fart but anyway, when ever i select an object with bylayer my routine dumps... (assoc 62 (entget (car (entsel)))) any other color will work. Is there another code for bylayer.