Create a rotate 90° macro function in drawing view

Good morning people,

So in my line of work, creating drawings are a constant part of my daily work routine and two of the main tasks that have become tedious and time consuming are the scaling and the rotation of the drawings.

As you can see in the picture i have managed to get a scaling function up and running effectively, however, both my attempts to get the drawing to rotate, natively to it position have failed.

Can anyone help me?!! This would be a massive saving of time for myself and my colleagues so if any of you could help me out with this then that would be much appreciated.

Also if anyone else knows how i get it to rotate regardless of its position, (so to rotate 90° on each click) That would be perfect

SolidworksApi macros