How to set properties of objects to ByLayer?

We’ve heard a lot of complaints about how unstandardized drawing files cause headache. For example, many properties are not set to Bylayer, making it very troublesome to edit and adjust the drawings.