Macro save as jpg

I need a macro to save as jpg (iso format) for all components in an assembly.

1. I do not need pictures for the toolbox files;

2. Save as jpg for configuration part in use;

3. Name for jpg file - part number.

4. For sheetmetal part i need 2 pictures, +1 for a flat-patern configuration.

I found similar macros but not exactly what i need.

Can anyone help?

SolidworksApi/macros