13.33.107.3 Example

Example 1: Opens an existing design from the file “test.adb” in the current folder.

open_design {test.adb}

Example 2: Design creation and catch failures.

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

if { [catch { open_design $designFile }] {

Puts “Failed to open design” # Handle Failure

} else {

puts “Design opened successfully” # Proceed to further processing

}