gpeSelect
gpeSelect(g_tableView[g_selectionList|g_typeg_value] ) => t / nil
Description
Select cells in the Grid Pattern Editor or Grid Pattern Mapping assistants.
Arguments
Value Returned
Examples
Assuming a 4x4 grid with A, B, C, D symbols in the columns, and rows alternating between R0 and MY orientation.
tv = dwindow('gpeGridAsst_1)->tableView
gpeSelect(tv t) ; select all by row
gpeGetSelection(tv)
--> (((3 0) (3 3)) ((2 0) (2 3)) ((1 0) (1 3)) ((0 0) (0 3)))
gpeSelect(tv nil) ; select none
gpeGetSelection(tv)
--> nil
gpeSelect(tv list(list(0:0 3:0))) ; select left-most column
gpeGetSelection(tv)
--> (((0 0) (3 0)))
gpeSelect(tv '("B")) ; select all the B cells
gpeGetSelection(tv)
--> ((0 1) (1 1) (2 1) (3 1))
gpeSelect(tv '(orient "MY" symbol "C")) ; select all the C cells with MY orientation
gpeGetSelection(tv)
--> ((1 2) (3 2))
Return to top