Well, here is the first macro for you:
This one rotates a model isomeric (down + left)
So it is not that hard to write a macro ...
Option Explicit Dim swApp As SldWorks.SldWorks Dim model As SldWorks.ModelDoc2 Dim view As SldWorks.ModelView Sub main() Set swApp = Application.SldWorks Set model = swApp.ActiveDoc Set view = model.ActiveView view.RotateAboutCenter 0.6154797086799, -0.7853981633974 model.ViewZoomtofit End Sub
You can do the tutorials of API in the SolidWorks first.
Open SolidWorks, click on HELP and in SolidWorks Tutorials, there you'll find an introduction of API.
Other way is just finding online macros and trying to understand it. A very good book you can buy is the Automating SOLIDWORKS 2015 Using Macros, or other version. SolidWorks API Support can help you.