Add new view to an Extruded Boss/Base

Oi

I have a simple extrusion (not well oriented). With the file already open i want the code to: get normal to extrusion; view>modify>orientation; new view; give a default name; click ok; save.

It seems okay to me, but my google skills are lacking today.

Any help is welcome. Obrigado.

SolidworksApi/macros