AutoLisp function to give the user the capability to assign specific layers to existing AutoLisp routines i.e.:
(mk_layer "dotline" "a-note-line" "2")
The above example would set to or create a layer called "a-note-line" and assign it a color of "2" and then execute the AutoLisp command called "dotline" after finishing the command the layer would be returned to it's original setting. I find this function to be very useful for menu buttons. This function also allows a user to standardize layers without actually having to alter the code of the original AutoLisp routine.