If my scripted workflow requires having Mechanical GUI open, how can I reset the layout of the GUI window before graphics export?
You can do this with:
ExtAPI.Application.ScriptByName('jscript').CallJScript('doRestoreWindows')