project_close (::quartus::project)

The following table displays information for the project_close Tcl command:

Tcl Package and Version

Belongs to ::quartus::project 6.0

Syntax project_close [-h | -help] [-long_help] [-dont_export_assignments]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-dont_export_assignments Do not export assignments to file
Closes an open project.

The assignments created or modified during an open project
are committed to the Quartus Prime Settings File (.qsf) during a 
"project_close", unless you use the "-dont_export_assignments"
Example Usage
## Close the project if open
if [is_project_open] {
## Close the project if open
## and do not export the assignments
if [is_project_open] {
   project_close -dont_export_assignments
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Can't find active revision name. Make sure there is an open, active revision name.
TCL_ERROR 1 ERROR: Entity does not exist or uses illegal name characters: <string>. Specify a legal entity name.
TCL_ERROR 1 ERROR: Failed when attempting to write assignments back to QSF.
TCL_ERROR 1 ERROR: Can't run Tcl command while a process is in progress: <string>. To run the command, stop the compilation or simulation; or wait for the compilation or simulation to complete.
TCL_ERROR 1 ERROR: You must open a project before you can use this command.