Cadance Allegro自定义快捷键

在Cadance Allegro使用过程中操作快捷键,有利于PCB设计效率的提高。

Cadance Allegro 有两个定义快捷键的命令,Alias和FUNCKEY。Alias快捷键与FUNCKEY快捷键在Env里面共存但二者各有优缺点:Alias快捷键对于字母、数字类快捷键需要回车才会执行。用Funckey定义的单字符快捷键容易与多字符快捷键冲突。一般定义组合快捷键用Alias,单个快捷键用Funckey。

 指定快捷键方法

打开A1legro软件,在命令栏中输入。定义快捷键命令格式 为funckey+快捷键+指令,或alias +快捷键+指令,如:

funckey  m move 用Funckey定义小写的字母m定为移动命令的快捷键。

Alias m move 用alias定义小写的字母m定为移动命令的快捷键。

指定快捷键方法

    在安装路径下的"Cadence\share\pcb\text\env文件中定义",自带快捷键与自定义快捷键共存,均有效,按自个爱好去添加,不用删除原有的快捷键定义。

Cadence\share\pcb\text\env修改后Allegro软件需要关闭,再重新打开才会有效。

特别注意:  1、注意F1 X Y i四个键最好不要重新定义。

                   2、快捷键区别大小写。当定义大写字母时需用CAPSLK切换或shift +字母,定义的大写的快捷键才能执行。

#--------------------------------------------------------------------

# 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

funckey Up        "roam y -$roamInc"

funckey Down      "roam y $roamInc"

funckey Left      "roam x -$roamInc"

funckey 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"

alias Pgup       "layer up"

alias Pgdown     "layer down"

# 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 add connect

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

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

alias ~Y redo

funckey + subclass -+

funckey - subclass --

#--------------------------------------------------------------------

# 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'

alias zc zoom center

# autoroam

alias sar set pcb_autoroam

alias uar unset pcb_autoroam

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 ~SB 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

  • 25
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值