The code can be placed in the "acad.lsp" to be loaded automatically.
The code hatches the picked mline with the current pattern, scale, and rotation angle. The a.m. parameters are linked to the HPNAME, HPSCALE, and HPANG system variables, respectively.
Farzad