To apply a material by layer
The material is applied to all objects on the layer whose Material property is set to BYLAYER. BYLAYER is the default for the Material property when you create an object.