Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 12/13/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.1.24.36. project_close (::quartus::project)

The following table displays information for the project_close Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

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
Description

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" option.

Example Usage
## Close the project if open
if [is_project_open] {
   project_close
}
## 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.

Did you find the information on this page useful?

Characters remaining:

Feedback Message