Page 1 of 1
[SOLVED] How To: Suspend AutoSave by script
Posted: Mon Nov 30, 2020 5:23 am
by CVH
Andrew,
Is there a way to suspend AutoSave by script?
Tried to follow the AutoSave.js script ... had to include it
Code: Select all
include("scripts/File/AutoSave/AutoSave.js")
Still the methods report 'undefined'
Regards,
CVH
Re: How To: Suspend AutoSave by script
Posted: Wed Dec 16, 2020 2:31 pm
by andrew
You can control this through a global application wide property:
Code: Select all
var appWin = EAction.getMainWindow();
appWin.setProperty("DisableAutoSave", true);
appWin.setProperty("DisableAutoSave", false);
Re: How To: Suspend AutoSave by script
Posted: Thu Dec 17, 2020 8:57 am
by CVH
Thanks, Andrew.
Now implemented in the 'Create New subLayers from Hatches' proposition ...
And working!
Stumble on it while testing ... and it was reported by someone else too.
When a drawing is hard to render ...
or when a script runs slow on such a drawing ...
and AutoSave is set and to frequent short intervals ...
QCAD is spending even more time in auto saving the drawing over and over again.
Regards,
CVH