@owitzki wrote:
Hi Guys,
Can I ask you favor? I need a custom save command with 2 conditions:
If the 'measurement' is '0' (zero), settings will be psltscale = as is and ltscale = as is;
And if 'measurement' is '1' (one), settings will be psltscale = 1 and ltscale = 1
Should this topic already exist, please direct me to the appropriate forum.
Thanks & regards,
You really don't want to redefine built-in commands for any reason. Doing that is usually more complicated than most attempts you'll find. For example, QSAVE will prompt for a filename if you invoke it on a new, unnamed file. If the file is already saved, it will do nothing (and in that case, your redefined command will change settings that it really shouldn't change).
Have you given any thought to how many ways a file can be saved? If you use a vlr-beginSave reactor, it solves the problem in a more-reliable way. It can take whatever actions it needs to just before the file is saved, regardless of how that happens (e.g., SAVE, SAVEAS, SAVEALL, QUIT/CLOSE and answer yes, etc.).
A search of this forum for vlr-beginSave would probably turn up something you can adapt.