save_design

The save_design command saves the current design in Designer to a file. If filename is not a complete path name, the ADB file is written into the current working directory.

 

save_design filename

Arguments

The design is written to a file denoted by the variable filename as an ADB file.

Supported Families

All

Exceptions

None

Example

Example 1: Saves the design to a file “test.adb” in the current folder.

 

save_design {test.adb}

           

 

Example 2: Save design and check if it saved successfully.

 

set designFile {d:/test/my_design.adb}

if  { [catch { save_design $designFile }] {

              Puts “Failed to save design”

              # Handle Failure

} else {

              puts “Design saved successfully”

              # Proceed to make further changes

}

 

See Also

close_design

new_design

open_design