21.3.16 close_design

Description

This Tcl command closes the current design and brings Designer to a fresh state to work on a new design. This is equivalent to selecting the Close command from the File menu.

close_design -component "smartdesign component name"

Arguments

ParameterTypeDescription
componentstringSpecifies the name of the SmartDesign component to be closed. It is mandatory.

Error Codes

Error CodeDescription

None

Required parameter 'component' is missing.

NoneParameter 'component' has illegal value.

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

The following example checks is the "Top" design component successfully closed or no.

if {[ catch {close_design -component {Top}} ]} {
    puts “Failed to close design”
# Handle Failure
} else {
    puts “Design closed successfully”
# Proceed with processing a new design
}

See Also