Constrain four points in a grid macro?

Has anyone seen or is willing to share a macro that will constrain 4 preselected points in a grid pattern? I do a lot of work with the hole wizard and I select two points, constrain horizontal, select another two, constrain vertical, select another two, constrain horizontal, and then select the remaining two and constrain vertical. I'd prefer to do it with a macro and if I don't need to reinvent the wheel that would be a bonus.

Thanks!

SolidworksApi macros