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

gpeGetGridValue

gpeGetGridValue(
g_tableView
[ g_location ] 
[ s_type ]
)
=> grid_value

Description

Returns the value of the cells in the Grid Pattern Editor table view.

Arguments

g_tableView

The tableView of the grid.

g_location

Location of cells. Valid values are:

  • Unspecified: The current selection is used.
  • t: All cells are returned.
  • A specific row:col: Its cell value is returned.
  • list(row1:col1 row2:col2): A list of the two cell values is returned.
  • list(list(bottom:left top:right) ...): A list of cell values representing the specified range is returned.

s_type

A symbol indicating the type of value to retrieve. If unspecified, then the current display value is used. Valid values are 'symbol, 'layoutName, 'schematicName, 'orient, and 'display (default).

Value Returned

grid_value

The value of the grid at the specified locations.

Examples

Returns the displayed value of the grid cells currently selected:

getGridValue(dwindow('gpeGridAsst_1)->tableView)

Returns the displayed values of all the cells in the grid, arranged as a list of one list per row:

getGridValue(dwindow('gpeGridAsst_1)->tableView t)

Returns the orientation of the cell at row 1, column 2:

getGridValue(dwindow('gpeGridAsst_1)->tableView 1:2 'orient)

Returns the orientation of all cells that have the symbol A:

getGridValue(dwindow('gpeGridAsst_1)->tableView '('symbol "A") 'orient)

Return to top
 ⠀
X