Key macro space implements the command changetool.
Key macro shift-space implements the command changetool box.
changetool [name|info]
where name may be one of box, wiring, or netlist.
The changetool command selects or queries the mode of operation of the mouse buttons in the layout window. Each tool type has a unique set of button bindings.Without arguments, the changetool command selects the next tool type in round-robin fashion. With a tool type as argument, the button bindings switch to those for the indicated tool. With the info option, a summary of the commands bound to each mouse button is given for the current tool.
The default mouse bindings for each of the three tools is as follows:
- Box Tool
In addition, you can move or resize the box by different corners by pressing left or right, holding it down, moving the cursor near a different corner and clicking the other (left or right) button down then up without releasing the initial button.
- left
- Move the box so its lower-left corner is at cursor position
- right
- Resize box by moving upper-right corner to cursor position
- middle
- Paint box area with material underneath cursor
- Wiring Tool
- left
- Pick a wiring layer and width (same as "wire type")
- right
- Add a leg to the wire (same as "wire leg")
- middle
- Place a contact to switch layers (same as "wire switch")
- Netlist Tool
- left
- Select the net containing the terminal nearest the cursor
- right
- Toggle the terminal nearest the cursor into/out of current net
- middle
- Join current net and net containing terminal nearest the cursor
changetool is implemented as a Tcl script in the Tcl-based version of magic. The command duplicates the function of the original tool command, which remains for the non-Tcl based version of magic, and which performs the function of changing the cursor style in the window.Button functions for each "tool" may be added to or modified in the startup scripts. The Tcl variable Opts(tool) contains the current tool name, and may be used by a user changetool procedure overriding the default one in "tools.tcl".
tool
Return to command index |
Last updated: October, 2004