is_design_loaded

Returns a Boolean value (0 for false, 1 for true) indicating if a design is loaded in the Designer software. True is returned if a design is currently loaded.

 

is_design_loaded

Arguments

None

Supported Family

All

Description

Some Tcl commands are valid only if a design is currently loaded in Designer. Use the ‘is_design_loaded’ command to prevent runtime errors by checking for this before invoking the commands.

Exceptions

Example

The following code will determine if a design has been loaded.

 

set bDesignLoaded [ is_design_loaded ]

if { $bDesignLoaded == 0 } {

  puts “No design is loaded.”

}

See Also

get_design_filename

get_design_info

is_design_modified

is_design_state_complete