"Alt A" Short cut on space pilot.

I use "Alt a" on my keyboard to get grid lines to align my dimensions on drawings.

I want to make this a button on my space pilot.

Is this possible?

Also, "Ctrl tab" to change between drawing and model.

SolidworksUser Interface