How to set shortcut key in Allegro PCB Editor 15.7?Thanks in advance
There is a couple ways this could be accomplished.1) Using the alias command to remap the keyboard function keys to a command or series of commands separated by a semicolon.Examples: alias F4 "add line" alias F5 "add line ; class board geometry ; subclass assembly_notes"Just press the function key above and it will automatically execute the command.2) Using the funckey command you can map a command or series of commands separated by a semicolon.Examples: funckey c "add connect" funckey at "add text; class board geometry ; subclass dimension"Just type the the letter(s) above with your cursor in the work area (design window) and it will automatically execute the command. Note: I believe the "funckey" command was introduced in SPB 15.5.1Hope this helps,Mike CatramboneUTStarcom, Inc.
More useful information with respect to shortcut key setting. The above method by mcatramb91 is also useful, but they are not memorized once Allegro PCB Editor restarts.Here is the memorized method of alias shortcut key setting.1. Allegro PCB open -> Command > alias2. Save as "myenv" to \pcbenv (NO extension)3. Open the "myenv" with a text editor4. Turn off the alias command that you want to modify and add a new alias ex) #alias F6 add connect alias Insert add connect # : Turn off mark5. Overwrite save6. Restart Allegro PCBAllegro default alias commands are of small use since these are unmemorable.For example, alias Shift+F7 = move, alias F6 = add connect, etc.Just for reference, I have changed commonly-used key to new key as follows.This makes you allow a series of routing operations with one hand.ex)#alias F10 zoom inalias Pgup zoom in#alias F11 zoom outalias Pgdown zoom out#alias SF7 movealias Home move#alias SF9 copyalias c copyRegards ,Tomo
Tomo,You make a very good point that I did not mention in my post. Setting an alias while in Allegro is only good for that session only and is not remembered the next time you start Allegro.I believe using a file called "myenv" in your pcbenv directory will NOT be read during Allegro startup, at least in the default configuration of the tools. Maybe you have a special tool configuration that reads myenv.All,Out of the box with Allegro you can modify the env file or add a line to source your custom environmental setting so they are read during Allegro startup. The following file called "env" it is automatically created inside of the pcbenv directory once you modify any settings using the User Preferences editor (Setup > User Preferences...) source $TELENV ### User Preferences section ### This section is computer generated. ### Please do not modify to the end of the file. ### Place your hand edits above this section. ### set film_nosortIf you choose to create your own environmental settings file that all you need to do is add a source statement to the file as follows: (Note: It must be below the "source $TELENV" line and above the User Preferences section.) source $TELENV # Source my env settings source $HOME\pcbenv\myenv.txt ### User Preferences section ### This section is computer generated. ### Please do not modify to the end of the file. ### Place your hand edits above this section. ### set film_nosortYou also can just add the alias and setting directly to the env file as well but again must be below the "source $TELENV" line and above the User Preferences section as follows: source $TELENV # My env settings alias Insert replay 2_5grid.scr alias Home replay 5grid.scr alias Pgup replay 25grid.scr set display_nohilitefont set draft_retain_class_subclass ### User Preferences section ### This section is computer generated. ### Please do not modify to the end of the file. ### Place your hand edits above this section. ### set film_nosortOne final note: When you save off all of the default alias' and settings for Allegro please only use it as reference and only add the overriding or custom settings in your own env file to avoid any weird issues with the tools. Sure most of the setting won't matter that it appears in your local env file but some do so be carefull.Hope this helps,Mike CatramboneUTStarcom, Inc.
I tried making myenv file as you explained but didn't work. Also if I modify my original env file then after some time it automatically changes to env,1 & a new env file is created with default settings of tool. Please let me know how to resove this ?
Thakns in advance
Hi Mike,Can you please explain it again.Its not working when I tried.
It should work. I looked my post again and everything seems to be correct.Can you attached your ENV file that you modified so I can review it. Also if you settings were removed from the ENV when a ENV,1 was generated means that you added you setting at the end of the file instead of above the User Preferences section. You setting should be above the following statements in the ENV file for them to stick.### User Preferences section### This section is computer generated.### Please do not modify to the end of the file.### Place your hand edits above this section.###Unless there is a new bug that has appeared in the tool this should work. Send the ENV file and I will review it then post my findings.Hope this helps,Mike CatramboneUTStarcom, Inc.
I checked my env file. Actually one of the shortcut was written beneath the line section you mentioned.
After amending it is working fine.
Thanks for your support.