We are trying to write a script that save all of our dashboards to the same location as the .fsm as .png files. parts of the attached code seem to work individually but as a whole something is not working. We used (Automatic Exporting of Dashboard Image - FlexSim Community) this string for to help write most of the code in "OnRunStop".