Key macro / (slash) implements the command what.
The what command queries what material is in the current selection. This includes a report on layers, labels, and subcell instances that are selected.
In the Tcl version of magic, the -list option returns the result as a Tcl list containing three sub-lists. The first sub-list contains the types found, the second contains the labels found, and the third contains the subcells found. Each label in the second sub-list is itself a list of three items: The label text, the layer the label is attached to, and the cell def containing the label. Each subcell in the third sub-list is itself a list of two items: The subcell instance ID name, and the cell definition name.
what is implemented as a built-in command in magic.
|Return to command index|
Last updated: October 15, 2004 at 6:25am