SaveAs
Saves the project under a new name. Requires a full path.
This script takes two parameters for non-schematic/layout designs and four parameters for schematic/layout designs.
| UI Access | File > Save As. | |||||||||||||||
| Parameters |
|
|||||||||||||||
| Return Value | None. |
| Python Syntax | For non-Schematic/Layout project: SaveAs ( <NewName> <OverWriteOK>) For Schematic/Layout project: SaveAs (<NewName> <OverWriteOK> <DefaultAction> <OverrideActions>) |
| Python Example |
|
The DefaultAction and OverrideActions strings correspond to the following actions:
- ef_overwrite – Copy file to new project directory and overwrite.
- ef_copy_no_overwrite – Copy file to new project directory and don't overwrite.
- ef_make_path_absolute – Change reference to point to file in old project directory.
- Empty String – Do nothing.
The DefaultAction is applied to all files that are NOT explicitly listed in the OverrideActions array. Those in the OverrideActions array are separate arrays for actions that are different from the default action; those actions are applied to the files listed in the same array:
- If OverrideActions are not specified, DefaultAction is applied to ALL files in project directory.