Designer save hook

Looking around I’m not finding anything,

I know you can create project scripts on a designer save, but is there a module hook you can implement to trigger module scripts on designer saves?

You'll pretty reliably get fresh ScriptManager initialization calls for newly saved projects.

Looking for a way to auto-export something as a file on every save (from a module)

Do you think this is a reliable enough way to trigger this? Or should I look for something more deterministic?

Maybe hook with this?

https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/common/project/ProjectListener.html

1 Like

Hello @kgamble,

You can override the notifyProjectSaveDone method of your DesignerHook.
https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/designer/model/AbstractDesignerModuleHook.html#notifyProjectSaveDone()