Changing Reference Planes

I would like to make a macro that goes down through my part and switches a reference plane from what its currently to the front plane. I have the coolant holes right now based off one X-Hole 1 Rotation plane and the other 8 sets are set to the same. More and more customers are basing them off 0° and giving each plane its own degrees° value.

SolidworksApi/macros