How to make a screen capture macro?

For our engineering documents, the person assembly the change documents often needs screen grabs of the model.

Does anyone have a macro that does the following:

  1. Open a part or assembly
  2. rotates to the first main view and zoom extent
  3. captures the model view
  4. Output model view to a JPEG: -.jpg, ie XXXXX-FRONT.jpg
  5. Iterates through the rest of the views (each of the main views (FRONT, LEFT, RIGHT, TOP, BOTTOM, BACK, TRIMETRIC).
  6. Closes the part or assembly.
SolidworksApi macros