next up previous contents index
Next: Pseudo-Flat Generator Up: Main Functions 3 Previous: Layers - Extraction Support   Contents   Index

Selections

(int) SetLayerSpecific(state)
If the boolean state value is nonzero, all layers except for the current layer will become unselectable. Otherwise, all layers will be set to their default selectability state. The return value is always 1.

(int) SetLayerSearchUp(state)
This function will set layer-search-up selection mode (see 3.8.5) if the argument is nonzero, or normal mode otherwise. The return value is 1 or 0 representing the previous layer-search-up mode status.

(string) SetSelectMode(ptr_mode, area_mode, sel_mode)
This function allows the various selection modes to be set. These are the same modes that can be set with the Selection Control Panel provided by the layer button. If an input value is given as -1, that particular parameter will be unchanged. Otherwise, the possible values are

ptr_mode area_mode sel_mode
0 Normal 0 Normal 0 Normal
1 Select 1 Enclosed 1 Toggle
2 Modify 2 All 2 Add
    3 Remove

The return value is a string, where the first three characters are the previous values of ptr_mode, area_mode, and sel_mode as integers, not ASCII characters.

(int) SetSelectTypes(string)
This function allows setting of the object types that can be selected. This provides the default selection types, but does not apply to functions that provide an explicit argument for selection types.

The string argument consists of a sequence of characters whose presence indicates that the corresponding object type is selectable. These are:

c cell instances
b boxes
p polygons
w wires
l labels

Other characters are ignored. If the string is null, empty, or contains none of the listed characters, all objects are enabled, as if the string ``cbpwl'' was entered.

This function always returns 1.

(int) Select(left, bottom, right, top, types)
This function performs a selection operation in the rectangle defined by the first four arguments (given in microns). The fifth argument is a string whose characters serve to enable selection of a given type of object: `b' for boxes, `p' for polygons, `w' for wires, `l' for labels, and `c' for instances. If this string is empty or null, then all objects will be selected. Any matching object that touches or overlaps the selection box will have its selection status toggled. For example,
Select(-INFINITY, -INFINITY, INFINITY, INFINITY, "c")
will select all subcells.

For more complex selections based on object types, etc., the TextCmd function can be used to call the !select command.

(int) Deselect()
This function deselects all selected objects.


next up previous contents index
Next: Pseudo-Flat Generator Up: Main Functions 3 Previous: Layers - Extraction Support   Contents   Index
Stephen R. Whiteley 2024-09-29