Delete_report_panel, Usage, Options – Altera Quartus II Scripting User Manual

Page 381: Description, Example, Delete_report_panel –251

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–251

report

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

delete_report_panel

Usage

delete_report_panel [-id <panel_id>] [-name <panel_name>]

Options

-id <panel_id>: Id of panel to delete

-name <panel_name>: Name of panel to delete

Description

Deletes the report panel with the specified id or name. The panel can either be a report table or report
folder.

Using the panel id provides faster data access than using the panel name.

Panel ids that you have cached may become outdated or invalid if the report is unloaded or reloaded. This
error occurs after compilation or with calls to the "project_close", "unload_report", and "load_report"
commands.

Panel names support wildcards.

The table of contents portion of the Compilation Report window shows short panel names for better
readability. However, the panel name used by this command is the full panel name as shown in the
right-hand side frame of the Compilation Report window or the .rpt file of the corresponding
command-line executable. For example, the table of contents shows the path "Analysis &
Synthesis||Summary". However, the corresponding full path used by this Tcl command is "Analysis &
Synthesis||Analysis & Synthesis Summary".

Example

load_package report
project_open chiptrip
load_report

# Set table name and id
set table "Fitter||My Table"
set table_id [get_report_panel_id $table]

# Delete the table if the it already exists
if {$table_id != -1} {
delete_report_panel -id $table_id
}

# Re-create the table
create_report_panel -table $table
add_row_to_table -name $table {{Name} {Value}}
add_row_to_table -name $table {{Number of Registers} {100}}

# This time, use table name instead of table id to delete it.
delete_report_panel -name $table

# Now, delete a folder
set folder "My Folder"
set folder_id [get_report_panel_id $folder]

# Delete it if the specified folder already exists
if {$folder_id != -1} {
delete_report_panel -id $folder_id
}

Advertising