21.3.16 close_design
(Ask a Question)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
| Parameter | Type | Description | 
|---|---|---|
| component | string | Specifies the name of the SmartDesign component to be closed. It is mandatory. | 
Error Codes
| Error Code | Description | 
|---|---|
None  | Required parameter 'component' is missing.  | 
| None | Parameter '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
}