Let's say, you edit a cell called 'name' the first time, which means, there is no file in the actual directory like 'name.scm', 'name.sym'or 'name.oth' .
Now, you did some edits and want to save that.
First, you can press CTRL s , which is the hotkey for the function saveit which can be found on the main menu or in the 'files' scrolldown menu. This command may be executed for schematics, symbols, and 'other' objects. It may be executed on top level in a hierarchical design and also on lower levels. If SPICECAD cannot find an existing cell on your actual directory or in the library system with the same name , you will receive a warning message that a new file has been created on the working directory.
Second, you can select the function save schematic as, save symbol as or save other as and type in a new name on the text line of the dialog box.
Again, if SPICECAD cannot find an existing cell on your actual directory or in the library system with the name typed in, you will receive a warning message that a new file has been created on the current working directory.
If you type in a name of a cell that already exists, the save process will be stopped, and you will be asked whether you really want to overwrite the file or not.
A third possibility is to select the 'browse'-button and pop up a list of files. You can choose a filename out of this list.
But be careful: Overwriting files is not checked here because it is assumed that you want to do that.
The safest method for saving is 'CTRL s' and from the text line of the 'save as ...' dialog box .
Besides, before saving a cell, a backup of the cell file is created.
When it had happened that
you are not happy with the version of the schematic that you have saved,
type
cp cellname.scm.bak cellname.scm
in your xterm window to restore the old cell version.
SPICECAD needs to be exited when this happens, and needs to be restarted to read the old cell version during loading.