Would like to write a simple alias/macro. Please help!

Hi!

As something that would be useful to me, and also provide me with a good learning exercise I would like to make some command short-cuts that change the grid and snap size for me. 

I would like to be able to make 3 commands: grid1, grid2, and grid3. Each of these I would assign a grid size and snap setting. So when grid1 was typed in the command console I woukd get a grid size of 1, and a snap size of 1. If grid2 was entered I woukd get a grid size of 5 and a snap size of 5. grid3 would correspond to 10. 

 

I can't figure out how to quickly set even one of these from the command line. If I type 'grid' and press I get a prompt. I need a good resource for aliases and macros in DraftSight. Thanks for your recommendations.