Rotating sketch need macro

Hello,

I would like to create a macro to perform the rotation of a sketch, so as to get the least amount of material, as in the accompanying video (by Cimatron, see from 1:12 to 1:25).

The prerequisites are:

A sketch edited with an irregular shape

Someone would be able to help me? I think this macro might be useful to most users.

Thanks in advance to those who will help me

Roberto

SolidworksApi macros