gpeGetSelection
gpeGetSelection(g_tableView) => list(rowcolumn) / list(bottom:lefttop:right)
Description
Returns a list of currently selected cells or a range of cells in a grid-pattern-editor table format.
Arguments
Value Returned
|
The return value for a single cell. This format can also be used for multiple cells. |
|
|
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