i'm using this code to select entities with a certain layer and color but how can select ones with color bylayer (no 62 part),or may i should filter the ss in a another step? (setq b1 (assoc 8 obj)) (setq b2 (assoc 62 obj)) (setq ss (ssget (list b1 b2))) martin