Hi Paul, Exactly. I was hoping to keep the SKILL commands simple for easy editing by myself and others. PCB Design is my more core competency, not SKILL coding. Here is what I use for "Placement mode": axlCmdRegister("wtm_PlaceKeyPad" `wtm_pe_MKeyPad) procedure( wtm_pe_MKeyPad( ) axlSetFunckey( "/" "prepopup; pop dyn_option_select 'Selection set@:@Select by Lasso'" t) axlSetFunckey( "*" "replay C:/Cadence/SPB_17.2/share/local/pcb/scripts/toggle_rot_sym_orig_increment.scr" t) axlSetFunckey( "-" "replay C:/Cadence/SPB_17.2/share/local/pcb/scripts/toggle_abs_sym.scr" t) axlSetFunckey( "Home" "prepopup; pop dyn_option_select '@:@Swap components'" t) axlSetFunckey( "Up" "iangle 90" t) axlSetFunckey( "CUp" "move; ipick_to_gridunit 0 +1" t) axlSetFunckey( "Pgup" "prepopup; pop dyn_option_select @:@Rotate" t) axlSetFunckey( "Right" "prepopup; pop dyn_option_select '@:@Swap pins'" t) axlSetFunckey( "Down" "prepopup; pop mirror" t) axlSetFunckey( "SDown" "prepopup; pop dyn_option_select @:@Mirror" t) axlSetFunckey( "CDown" "move; ipick_to_gridunit 0 -1" t) axlSetFunckey( "Pgdown" "prepopup; pop dyn_option_select @:@Move" t) axlSetFunckey( "End" "prepopup; pop dyn_option_select '@:@Show Rats'" t) axlSetAlias( "f1" "replay C:/Cadence/SPB_17.2/share/local/pcb/scripts/ff_pins_only.scr") axlSetAlias( "f2" "replay C:/Cadence/SPB_17.2/share/local/pcb/scripts/ff_text_only.scr") axlSetAlias( "f3" "replay C:/Cadence/SPB_17.2/share/local/pcb/scripts/ff_sym_only.scr") axlSetFunckey( "Left" "settoggle CMD f1 f2 f3; $CMD" t) axlSetAlias( "t1" "wtm_EtchKeyPad") axlSetAlias( "t2" "wtm_PlaceKeyPad") axlSetFunckey( "F12" "settoggle CMD t1 t2; $CMD" t) ; Set a .5MM grid for working in Placement edit mode. grid = axlDBGridGet("TOP") grid->name = 'all grid->xGrids = 25.000 grid->yGrids = 25.000 axlDBGridSet(grid) axlShell( "placementedit" ) axlShellPost( "setwindow form.find; FORM find all_off; FORM find Symbols YES; setwindow pcb; move; setwindow form.mini; FORM mini stretch YES; setwindow pcb; prepopup; pop dyn_option_select 'Options@:@Rotation point@:@Symbol Origin'; prepopup; pop dyn_option_select 'Options@:@Rotation type@:@Incremental'; done") ); procedure Again, to invoke these I create a new popup on the Main Pulldown menu by putting this in the C:Cadence\SPB_17.2\share\local\pcb\menus\Allegro.men file... */ POPUP "&Application Mode" BEGIN MENUITEM "Placement Edit", "wtm_PlaceKeyPad" MENUITEM "Etch Edit", "wtm_EtchKeyPad" END Hope you find it useful. You will notice I use the mini keypad on the right of the keyboard, that's just my historical preference. Modification to use the main keyboard keys should be a straightforward process. Bill
↧