Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 5/02/2025
Public

Visible to Intel only — GUID: reference_TCL_tcl_pkg_dcmd_dni_ver_1_0_cmd_dni__sizeof_collection

Ixiasoft

Document Table of Contents

4.1.4.36. dni::sizeof_collection (::quartus::dcmd_dni)

The following table displays information for the dni::sizeof_collection Tcl command:

Tcl Package and Version

Belongs to ::quartus::dcmd_dni

Syntax dni::sizeof_collection [-h | -help] [-long_help] [-categorize] <collection>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-categorize Return 0, 1, 2 indicating if the collection has 1, or or more than 1 item
<collection> The base collection
Description
Returns the number of objects in a collection.
Example Usage
set size [::dni::sizeof_collection $collection]
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful