EPDM Convert task JPEG improvement with Advanced Scripting option

Hi, I am trying to create loads of pictures form EPDM , the problem is that some of the pictures are not visible due to users have saved and checked in models incorrectly with zoom/ ordination issue. I am trying to add script to the advance scripting option to help with picture zoom and orientation. However, its not working for me , would anyone know how to do it or is it even possible.

  1. swModel.ShowNamedView2 "*Isometric", -1 
  2. swModel.ViewZoomtofit2

Thanks in advance

SolidworksSolidworks Pdm enterprise Pdm