next up previous contents index
Next: Object Management by Handles Up: Geometry Creation and Management Previous: Layer Alias Table   Contents   Index

Selections

(int) SetLayerSpecific(state)
This function will set layer-specific selection mode if the argument is nonzero, or normal mode otherwise. The return value is 1 or 0 representing the previous layer-specific 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) 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) SelectLast(types)
This function selects objects that have been created by the script functions since the last call to Commit or SelectLast (which calls Commit), according to type. The type 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. Objects that are created using PressButton or otherwise using Xic input implicitly call Commit, so can't be selected in this manner.

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


next up previous contents index
Next: Object Management by Handles Up: Geometry Creation and Management Previous: Layer Alias Table   Contents   Index
Stephen R. Whiteley 2006-10-23