EAGLE Help

ASSIGN


Function
Modify key assignments.

Syntax
ASSIGN
ASSIGN function_key command..;
ASSIGN function_key;

function_key = modifier+key
modifier = any combination of S (Shift), C (Control) and A (Alt)
key = F1..F12, A-Z, 0-9, BS (Backspace)

See also SCRIPT, Keyboard and Mouse

The ASSIGN command can be used to define the meaning of the function keys F1 thru F12, the letter keys A thru Z, the (upper) digit keys 0 thru 9 and the backspace key (each also in combination with Shift, Ctrl and/or Alt).

The ASSIGN command without parameters displays the present key assignments in a dialog, which also allows you to modify these settings.

Keys can be assigned a single command or multiple commands. The command sequence to be assigned should be enclosed in apostrophes.

If key is one of A-Z or 0-9, the modifier must contain at least A or C.

Please note that any special operating system function assigned to a function key will be overwritten by the ASSIGN command (depending on the operating system, ASSIGN may not be able to overwrite certain function keys).
If you assign to a letter key together with the modifier A, (e.g. A+F), a corresponding hotkey from the pulldown menu is no longer available.

To remove an assignment from a key you can enter ASSIGN with only the function_key code, but no command.

Examples

ASSIGN F7 'change layer top; route';
ASS A+F7 'cha lay to; rou';
ASSIGN C+F10 menu add mov rou ''';''' edit;
ASSIGN CA+R 'route';
The first two examples have the same effect, since EAGLE allows abbreviations not only with commands but also with parameters (as long as they are unmistakable).

Please note that here, for instance, the change layer top command is terminated by a semicolon, but not the route command. The reason is that in the first case the command already contains all the necessary parameters, while in the second case coordinates still have to be added (usually with the mouse). Therefore the ROUTE command must not be deactivated by a semicolon.

Define Command Menu

If you want to assign the MENU command to a key, the separator character in the MENU command (semicolon) has to be enclosed in three pairs of apostrophes (see the third example). This semicolon will show up in the new menu.

Presetting of keys assignments

F1 HELP Help function
Alt+F2 WINDOW FIT The whole drawing is displayed
F2 WINDOW; Screen redraw
F3 WINDOW 2 Zoom in by a factor of 2
F4 WINDOW 0.5 Zoom out by a factor of 2
F5 WINDOW (@); Cursor pos. is new center
F6 GRID; Grid on/off
F7 MOVE MOVE command
F8 SPLIT SPLIT command
F9 UNDO UNDO command
F10 REDO REDO command
Alt+BS UNDO UNDO command
Shift+Alt+BS REDO REDO command


Index Copyright © 2005 CadSoft Computer GmbH