Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

gpeGetSelection

gpeGetSelection(
g_tableView
)
=> list(row column) / list(bottom:left top:right)

Description

Returns a list of currently selected cells or a range of cells in a grid-pattern-editor table format.

Arguments

g_tableView

The tableView object.

Value Returned

list(row column)

The return value for a single cell. This format can also be used for multiple cells.

list(bottom:left top:right)

An alternate return value format for multiple cells, depending on the values retrieved.

Examples

To check if any instances are selected in the Grid Pattern Mapping assistant:

not(null(gpeGetSelection(dwindow('gpeMappingAsst_1)->tableView)))

Assume a 4x4 grid, with all M1 cells in the first column. To find all M1 cells in the Grid Pattern Editor assistant:

tv = dwindow('gpeGridAsst_1)->tableView
gpeSelect(tv '(schematicName "M1"))
gpeGetSelection(tv)
=>((0 0) (1 0) (2 0) (3 0))

Return to top
 ⠀
X