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

gpeSetGridValue

gpeSetGridValue(
g_tableView
[ g_location ]
S_value
[ s_type ]
)
=> t / nil

Description

Sets the value of the Grid Pattern Editor table view cells. If there is a single cell selected before the call, the next cell will be selected automatically.

Arguments

g_tableView

Name of the tableView

g_location

Location of cells.

  • If unspecified, then the current selection will be used.
  • If set to t, returns all cells.
  • If set to row:col, returns the cell value at (row,col).
  • If set to list(row1:col1 row2:col2), returns a list of the two cell values.
  • If set to list(list(bottom:left top:right) ...), returns a list of cell values representing the specified ranges.

s_value

Value as a string

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, or 'display (default).

Value Returned

t

The value of the Grid Pattern Editor table view cells was set.

nil

The value of the Grid Pattern Editor table view cells could not be set.

Example

Sets the current selected cells to a value of A:

getSridValue(dwindow('gpeGridAsst_1)->tableView "A")

Clears all cells in the grid or table and sets them all to " ":

setGridValue(dwindow('gpeGridAsst_1)->tableView t " ")

Sets the cell orientation at row 1, column 2 to R90. Returns nil if row 1, column 2 is empty:

setGridValue(dwindow('gpeGridAsst_1)->tableView 1:2 "R90" 'orient)

Sets the orientation of all cells with symbol A to mirror-on-X-axis (MX):

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

Return to top
 ⠀
X