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

pteGetSelection

pteGetSelection(
t_panelName
[ w_windowId ]
) 
=> l_layerSetItems / nil

Description

Retrieves a list of the selected layer-purpose pairs, objects, or grids from the specified panel.

Arguments

t_panelName

Name of the panel.

Valid values: Layers, Objects, and Grids

w_windowId

ID of the window containing the Palette from which you want to retrieve a list of selected objects.
Valid values: ID of any open window
Default: Current window

Value Returned

l_layerSetItems

A list containing the selected layer-purpose pairs, objects, or grids.

nil

If the panel specified is Objects or Grids, but no object or grid is selected in the panel.
If the panel specified is Layers and the Selection Mode is set to Single Selection (the default value), this function returns nil even though a layer-purpose pair is selected (the active layer-purpose pair).

If Selection Mode is set to Single Selection, use leGetEntryLayer to retrieve the active layer-purpose pair.

Examples

pteGetSelection("Layers")
(("Oxide drawing" "Layers") ("Poly drawing" "Layers")) 
pteGetSelection("Grids" window(2))
(("Grids;Routing Grid;Metal1" "Grids") 
    ("Grids;Routing Grid;Metal2" "Grids"))

Return to top
 ⠀
X