Align Grid/Origin

Is there a macro I can use for this.

I end up using  this command very oftne while designing.

I tried to record it but it doesn't work.

or can any one tell me what will be the API command for it?

SolidworksApi macros