### [Cadence PCB设计环境快捷键设置文件指南附设置文件](https://www.zkp.cc/iccourse/1420.3.html) **Published:** 2025-05-09T03:19:24 **Author:** 智行者IC社区 **Excerpt:** Cadence PCB设计环境快捷键设置文件指南 (2025年5月9日) 一、Cadence PCB Editor快捷键配置文件概述 Cadence PCB设计环境(包括Allegro和OrCAD)的快捷键设置通常保存在以下文件中: env # Cadence PCB设计环境快捷键设置文件指南 (2025年5月9日) ## 一、Cadence PCB Editor快捷键配置文件概述 Cadence PCB设计环境(包括Allegro和OrCAD)的快捷键设置通常保存在以下文件中: 1. **env文件** – 主配置文件,通常位于: - Windows: `%CDSROOT%\share\pcb\text\env` - Linux: `$CDSROOT/share/pcb/text/env` 2. **用户自定义文件** – 通常存储在用户目录: - Windows: `%HOME%\pcbenv\env` - Linux: `~/.pcbenv/env` ## 二、标准快捷键配置文件下载 您可以从以下渠道获取预定义的快捷键配置文件: 1. **Cadence官方资源**: - 安装目录下的默认env文件 - Cadence官方支持网站(需登录) 2. **社区共享资源**: - GitHub上的开源项目(搜索”cadence pcb hotkeys”) - EDA专业论坛如EEVblog、EDABoard等 ## 三、典型快捷键设置内容示例 以下是env文件中常见的快捷键配置段落: ``` # 视图控制快捷键 alias ~F1 "zoom in" alias ~F2 "zoom out" alias ~F3 "zoom fit" # 常用工具快捷键 alias ~P "add connect" alias ~V "vertex" alias ~D "delete" # 层控制 alias ~L "change layer" # 测量工具 alias ~Q "show measure" ``` ## 四、自定义快捷键设置方法 1. **备份原始文件**: ``` cp env env.bak ``` 2. **编辑env文件**: - 使用文本编辑器添加alias命令 - 格式:`alias <快捷键> "<命令> <参数>"` 3. **常用命令参考**: - 视图操作:zoom, fit, redraw - 布线命令:add connect, slide, delay tune - 测量工具:show measure, show element ## 五、高级配置技巧 1. **组合键设置**: ``` alias CtrlShiftA "angle 45" ``` 2. **多命令序列**: ``` alias ~W "zoom fit; redraw" ``` 3. **条件执行**: ``` alias ~R "if(axlIsAlias("~R")) then funckey ~R else funckey ~R 'redraw'" ``` ## 六、注意事项 1. 修改env文件后需要重启Cadence PCB Editor生效 2. 不同版本间快捷键可能有差异 3. 团队协作时应统一快捷键配置 4. 建议注释说明每个快捷键的用途 \[ceo-payment-hide sku=”1″\]# # ALLEGRO GLOBAL Environment file # # The following variables are set by the software if not preset by user: # CDS\_SITE, ALLEGRO\_SITE, TELENV, ALLEGRO\_INSTALL\_DIR, # ALLEGRO\_INSTALL\_TOOLS, ALLEGRO\_INSTALL\_ROOT, ALLEGRO\_TYPE, # \_\_UNIX (if UNIX), \_PROGRAM, HOME # # You may set the Operating System variable: # ALLEGRO\_PCBENV # to overwrite the default of the user’s pcbenv directory. This variable # must be set at the OS level and has no effect if set in an Allegro env file. # The directory given must exist. If no directory is found the system will # fallback to its default location. # # The following variables are preset at startup, direct settings in env # files will be overridden # LOCALENV: seeded based upon /pcbenv (or if set ALLEGRO\_PCBENV) # LOCALPATH: seeded based upon . LOCALENV, ALLEGRO\_SITE, GLOBALPATH # Variable names are case insensitive #——————————————————————– # System Variables set GLOBAL = $ALLEGRO\_INSTALL\_DIR/text # change from LIBPATH because it conflicts with IBM’s shared library # environment variable set ALIBPATH = $ALLEGRO\_INSTALL\_DIR/pcb\_lib set COMPLIBPATH = $ALLEGRO\_INSTALL\_DIR/allegrolib set GLOBALPATH = . $GLOBAL # Allegro Data Services Variable set ADSPATH = $GLOBALPATH # Present for compatiblity with older versions of Allegro. ifnvar ALLEGRO\_SITE “set ALLEGRO\_SITE .” ifnvar CDSPLAT “set CDSPLAT ” ifnvar ALLEGRO\_INSTALL\_DLL “set ALLEGRO\_INSTALL\_DLL ” #——————————————————————– # Configuration variables (Don’t change) set BMPPATH = . $ALLEGRO\_SITE/icons $GLOBAL/icons set FORMPATH = . $ALLEGRO\_SITE/forms $GLOBAL/forms set MENUPATH = . $ALLEGRO\_SITE/menus $GLOBAL/cuimenus set MATERIALPATH = . $LOCALENV $ALLEGRO\_SITE $GLOBAL #Configuration paths set PRFEDITPATH = . $LOCALENV/configure/prfedit $ALLEGRO\_SITE/configure/prfedit $ALLEGRO\_INSTALL\_DIR/configure/prfedit set BATCHHELPPATH = . $ALLEGRO\_INSTALL\_DIR/batchhelp set SPROUTEPATH = $ALLEGRO\_INSTALL\_DIR/configure/sproute set HELPPATH = . $ALLEGRO\_INSTALL\_DIR/help $GLOBAL/help set PDFPATH = . $ALLEGRO\_INSTALL\_DIR/help/pdf # Graphics demo env set IMAGEPATH = . $ALLEGRO\_INSTALL\_DIR/examples/image # Allegro Plugin search path set AXLPLUGINPATH = . $LOCALENV/$CDSPLAT $ALLEGRO\_SITE/$CDSPLAT $ALLEGRO\_INSTALL\_DLL #——————————————————————– # Drawing font set VECTORFONTPATH = . $GLOBAL set ANSIFONT = ansifont set KANJIFONTPATH = . $GLOBAL/fonts/kanji set KANJIFONT1 = kanjifont1 set KANJIFONT2 = kanjifont2 #——————————————————————– # Display Variables set display\_backingstore on # disable repair under ratsnests set display\_shapefill\_analysis 1 #——————————————————————– #——————————————————————– set compalib = $ALIBPATH/symbols $COMPLIBPATH/symbols set topfilelib = $ALIBPATH/templates $COMPLIBPATH/templates set signal\_install\_dir = $ALLEGRO\_INSTALL\_DIR/signal set signal\_optlib\_dir = $signal\_install\_dir/optlib # HDL Supported Design Library Search Path Variables set MODULEPATH = . $ALLEGRO\_SITE/modules set TILEPATH = . $ALLEGRO\_SITE/modules set WBPATH = . $ALLEGRO\_SITE/wbtiers set PADPATH = E:/via/ E:/Project/shoufang/vt4k\_encoder\_7A200T\_2016\_08\_12/LIB/ set PSMPATH = E:/via/ E:/Project/shoufang/vt4k\_encoder\_7A200T\_2016\_08\_12/LIB/ set DEVPATH = E:/via/ E:/Project/shoufang/vt4k\_encoder\_7A200T\_2016\_08\_12/LIB/ set TECHPATH = . $ALLEGRO\_SITE/tech $GLOBAL/tech set PARAMPATH = . $ALLEGRO\_SITE/parameter set TOPOLOGY\_TEMPLATE\_PATH = . templates .. ../templates $ALLEGRO\_SITE/topology $topfilelib # SigNoise data installation directory set SIGNOISEPATH = . $LOCALENV $ALLEGRO\_SITE/signal $signal\_install\_dir $signal\_optlib\_dir $GLOBAL # SigNoise model variables. set SI\_MODEL\_PATH = . $ALLEGRO\_SITE/signal $signal\_install\_dir set SI\_MODEL\_FILE\_EXT = Generic\_IBIS(ibs) IBIS\_Buffer(buf) IBIS\_EBD(ebd) IBIS\_ICM(icm) IBIS\_Pin\_List(pin) IBIS\_Package(pkg) Quad(mod) Generic\_SPICE(spc) HSpice\_Input(sp) HSpice\_Output(lis) Spectre(spc) Touchstone(S?p,s??,snp) DML(ndx,dml) Interconnect(iml) ABIML(abiml) #——————————————————————– # Non-HDL Supported Design Search Path Variables set MISCPATH = . $ALLEGRO\_SITE/misc set ARTPATH = . .. $ALLEGRO\_SITE set APTPATH = . .. $ALLEGRO\_SITE set CLIPPATH = . set DCLPATH = . .. $ALIBPATH $COMPLIBPATH set DEVPATH = . devices .. ../devices $ALLEGRO\_SITE/devices $ALIBPATH/devices $COMPLIBPATH/devices set DFAAUDITPATH = . $ALLEGRO\_SITE/assembly $ALLEGRO\_INSTALL\_DIR/assembly set DFACNSPATH = . dfa .. ../dfa $ALLEGRO\_SITE/dfa set NCDPATH = . .. $ALLEGRO\_SITE/nclegend $GLOBAL/nclegend set SCRIPTPATH = . $ALLEGRO\_SITE/scripts $GLOBAL/script set TEXTPATH = . $ALLEGRO\_SITE/extracta $GLOBAL/views set VIEWPATH = . $ALLEGRO\_SITE/views set XTALK\_TABLE\_PATH = . xtalk\_tables .. ../xtalk\_tables $ALLEGRO\_SITE/xtalk $ALIBPATH/xtalk\_tables set WIZARD\_TEMPLATE\_PATH = . $ALLEGRO\_SITE/new\_templates $ALLEGRO\_INSTALL\_DIR/pcb\_lib/symbols/template set LDFPATH = . # System Configuration .scf file search path set SCFPATH = . scfs .. ../scfs # Display the headsup meter in a fixed position in the control panel. set allegro\_dynam\_timing\_fixedpos # For IC Packaging tools (APD and SiP tools), the following defaults the # HUD for the wirebond tools to updating 25 times per second. set wirebond\_hud\_update\_frequency 25 # By default, suppress bond wire DRCs that are 3D in nature but being # checked in 2D. By default, the APD/SiP tools will only report wire # violations if they occur over top of the end item (finger or pin) and # the two wires are on different nets. set wirebond\_suppress\_bondwire\_drcs #——————————————————————– #——————————————————————– # alias # May use function keys F2-F12, most Alpha-numberic keys with control # modifier (although Control – C, V and X are reserved for copy, paste and cut) # and Navigation Keys (Home, Up arrow, Esc, etc.) These items may be modifed # by the following: # Modifier Indicator Example # Shift S SF2 # Control C (function keys) CF2 # Control ~ (alpha-numeric) ~N # Meta A AF2 # Modifiers may be combined. Some examples: # CSF2 Control-Shift F2 # ASF2 Meta-Shift F2 # CAF2 Control-Meta F2 # CASF2 Control-Meta-Shift F2 # ~SZ Control-Shift Z # SUp Shift-Up Arrow # CUp Control-Up Arrow # # funckey # use the funckey when you wish to have alphanumeric keys operate # like the Function keys when the cursor is in the Allegro canvas. # # Example — following starts the move command without a Enter key # funckey m move #——————————————————————– # Bind roam operations to function keys set roamInc = 96 alias Up “roam y -$roamInc” alias Down “roam y $roamInc” alias Left “roam x -$roamInc” alias Right “roam x $roamInc” # Bind incremental pick by grid unit functions to ctrl and shift–arrow keys alias CUp “ipick 0; ipick\_to\_gridunit 0 +1” alias CDown “ipick 0; ipick\_to\_gridunit 0 -1” alias CLeft “ipick 0; ipick\_to\_gridunit -1” alias CRight “ipick 0; ipick\_to\_gridunit +1” alias SUp “move; ipick\_to\_gridunit 0 +1” alias SDown “move; ipick\_to\_gridunit 0 -1” alias SLeft “move; ipick\_to\_gridunit -1” alias SRight “move; ipick\_to\_gridunit +1” # example of a funckey to emulate Layout capability # The “-cursor” option can be added to any Allegro command with the pick familty # and we utilize the position under the cursor when the command is execute. So # this example would center the display to position under the cursor when the ‘c’ key # is pressed. # funckey c “zoom center; pick -cursor” #——————————————————————– # F1 is normally reserved by the system for Help so we don’t use it alias F2 zoom fit alias F3 next alias F4 show element alias F5 redraw alias F6 done alias F7 next alias F8 oops alias F9 cancel alias F10 grid toggle alias F11 zoom in alias F12 zoom out alias SF2 property edit alias SF3 slide alias SF4 show measure alias SF5 copy alias SF6 move alias SF7 dehilight all alias SF8 hilight pick alias SF9 vertex alias SF10 save\_as temp alias SF11 zoom previous alias SF12 zoom world alias CF2 next alias CF5 color192 alias CF6 layer priority alias CSF5 status alias ~N new alias ~O open alias ~S save alias ~D delete alias ~Z undo funckey + subclass -+ funckey – subclass — funckey 1 assign color funckey 2 undo funckey 3 copy funckey 4 change funckey 5 dehilight funckey 6 swap components funckey 7 swap functions funckey 8 zoom points funckey a zoom out funckey b rotate funckey c delete funckey d add connect funckey e shape edit boundary funckey f slide funckey g move funckey h add line funckey m custom smooth funckey n mirror funckey q rats net funckey o unrats net funckey r shape select funckey s zoom in funckey t shape add funckey u island\_delete funckey v toggle funckey w delay tune funckey z show measure alias Esc done funckey ” ” iangle 90 funckey F3 drc update funckey T “prepopup; pop dyn\_option\_select ‘Snap pick to@:@Segment Vertex'” funckey E “prepopup; pop dyn\_option\_select ‘Snap pick to@:@Arc/Circle Center'” funckey R “prepopup; pop dyn\_option\_select ‘Snap pick to@:@Pin'” #——————————————————————– # OTHER ALIASES alias edps padedit alias rps “replace padstack” alias unplrp report unplaced alias x pick alias y pick l alias ix ipick alias iy ipick 0 alias reopen ‘open -q $module’ alias revert ‘open -q $module’ # autoroam alias sar set pcb\_autoroam alias uar unset pcb\_autoroam alias reopen ‘open -q $module’ alias bubset ‘settoggle shove\_mode Off “Hug preferred” “Shove preferred”; options bubble\_space $shove\_mode’ alias ~B bubset alias smoothset ‘settoggle smooth\_mode Off Minimal Full; options smooth\_level $smooth\_mode’ alias ~C smoothset #——————————————————————– # COMMAND DEFAULTS # allow slide to work on arcs by default set slide\_arcs # Compatibility aliases alias window zoom alias hilite hilight alias dehilite dehilight alias pickx pick alias picky pick l alias ipickx ipick alias ipicky ipick 0 alias cdnshelp cdsdoc #——————————————————————– # MOUSE WHEEL SUPPORT (Windows only) # Environment Variables – Note quote variables so they are evaluated # at button time not when this file is read. # – \_wheelcnt variable is set based upon number of detents wheel moved # range is -4 to 4 (no 0) # – sx1 and sy1 are cursor coordinates when wheel is moved # # Button values # wheel\_up: when wheel is moved up # wheel\_down: when wheel is moved down # wheel: up/down if either of above 2 buttons are not assigned # # Keyboard modifiers (note we are case insensitive) # S – shift key # C – control key # SC – shift and control # Example: SCwheel – for wheel button assignment with both shift & control keys # # Button factor may be factorion (e.g. 0.5) set buttonfactor = 1 button wheel\_up “zoom in $buttonfactor” button wheel\_down “zoom out $buttonfactor” button Cwheel\_up “zoom in $buttonfactor” button Cwheel\_down “zoom out $buttonfactor” # The parameter “BGA\*\_\*” is used when you press the keyboard ” Ctrl/Shift + Up”. # But the value will take effect only when these codes such as “set BGA1\_27 = 1.27” are the latest. # If you want to use “set BGA1\_27 = 50” you must move it to “set BGA1\_27 = 1.27 ” behind. # Unit:millimeter set BGA1\_27 = 1.27 set BGA1\_0 = 1.0 set BGA0\_8 = 0.8 #set BGA0\_8 = 3.81 # Unit: mil set BGA1\_27 = 50 #set BGA1\_0 = 25.5900 set BGA1\_0 = 39.37 #set BGA0\_8 = 31.5 set BGA0\_8 = 31.49 #set BGA0\_8 = 150 alias Up ipick 0 $BGA1\_27 alias Down ipick 0 -$BGA1\_27 alias Left ipick -$BGA1\_27 0 alias Right ipick $BGA1\_27 0 alias CUp ipick 0 $BGA1\_0 alias CDown ipick 0 -$BGA1\_0 alias CLeft ipick -$BGA1\_0 0 alias CRight ipick $BGA1\_0 0 alias SUp ipick 0 $BGA0\_8 alias SDown ipick 0 -$BGA0\_8 alias SLeft ipick -$BGA0\_8 0 alias SRight ipick $BGA0\_8 0 source -q $ALLEGRO\_SITE/site.env ### 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 undo\_depth = 30 set padpath = E:/via/ E:/IPTV/LIB/ set psmpath = E:/via/ E:/IPTV/LIB/ set devpath = E:/via/ E:/IPTV/LIB/ set allegro\_dynam\_timing = on unset allegro\_etch\_length\_on set allegro\_dynam\_timing\_fixedpos unset no\_dynamic\_zoom unset no\_zoom\_to\_object unset viewer\_useoglgraphics unset draw\_etch\_outline unset disable\_opengl set no\_dragpopup unset display\_nodynamicarcwidth unset display\_drcfill unset old\_style\_flash\_symbols unset ratt\_off\_if\_connected unset display\_thintext unset display\_nolinewidth set infinite\_cursor\_bug\_nt set pcb\_cursor = infinite set showmeasure\_altunits = millimeters set nolast\_directory set nolast\_file set display\_nohilitefont set logic\_edit\_enabled unset telskill set autosave\_time = 10 set autosave unset old\_shape\_fill\_style unset no\_shape\_fill \[/ceo-payment-hide\] **Categories:** Cadence SPB OrCAD Allegro, 行业软件 ---