记录下allegro快捷键设置问题,更改设置后保存问题

  • Post author:
  • Post category:其他


快捷键好多沿用了ad的,毕竟从ad转过来的,所以好些快捷键和ad差不多,虽然现在ad画板都忘差不多了o(╯□╰)o

问题1:


每次在软件里边配置用户设置后,env文件被覆盖


答:

原因是快捷键设置位置不对,必须在env文件中



User Preferences section之前,否则更改设置会被覆盖掉

在这里插入图片描述

问题2:


之前没注意快捷键funckey 和alias有什么区别,把所有快捷设置复制到### User Preferences section之前,发现alias的快捷键设置不好使了


答:

先说下两者区别,

Alias

对于字母、数字类快捷键需要回车才会执行,

Funckey

则无需回车,但是如果用Funckey定义的单字符快捷键容易与其他多字符的快捷键冲突,例如,用Funckey定义了c和ck两个快捷键,则按下字母c后,就会直接执行对应的操作,而输入不了ck的快捷键。

理解了吧。也就是说如果你要设置

字符串

快捷键那就用

Alias

,如果设置

字母或者数字

快捷键那就用

Funckey

,而且还需要避免两者冲突。

第二个问题,困扰好久,毕竟没怎么研究快捷键代码怎么写怎么用,都是拿来好使,简单设置能用就行,偶然发现如果使用

Alias

,需要在这之前添加

source $TELENV

,然后就可以了

下面附上本人经常用的配置:

#--------------------------------------------------------------------
# F1 is normally reserved by the system for Help so we don't use it
funckey F7 iangle 15

funckey s Shape Add
funckey b Shape Select
funckey v zoom fit
funckey o spin
funckey f Shape Add
funckey d Change
funckey w add connect
funckey t Delay Tune
funckey a add line
funckey e show element
funckey l mirror
funckey q done
funckey n next
funckey z oops
funckey c copy
funckey j zoom in
funckey k zoom out
funckey m show measure
funckey r iangle 90
funckey g Define grid
funckey h Assign Color
funckey u dehilight 

funckey S Shape Add
funckey B Shape Select
funckey V zoom fit
funckey O spin
funckey F Shape Add
funckey D Change
funckey W add connect
funckey T Delay Tune
funckey A add line
funckey E show element
funckey L mirror
funckey Q done
funckey N next
funckey Z oops
funckey C copy
funckey J zoom in
funckey K zoom out
funckey M show measure
funckey R iangle 90
funckey G Define grid
funckey H Assign Color
funckey U dehilight 

funckey Esc cancel
funckey + subclass -+
funckey - subclass --

#--------------------------------------------------------------------
#使用alias命令,第一行必须为 source $TELENV 否则alias失效
#--------------------------------------------------------------------

source $TELENV

alias F2 move 
alias F3 slide
alias F4 hilight pick
alias F5 dehilight all
alias F6 status
alias ~N new
alias ~O open
alias ~S save
alias ~D delete
alias ~Z undo
alias Del delete

# Bind roam operations to function keys

alias Up        "roam y -$roamInc"
alias Down      "roam y $roamInc"
alias Left      "roam x -$roamInc"
alias Right     "roam x $roamInc"

button wheel_up "roam y -$roamInc"
button wheel_down "roam y $roamInc"
button Swheel_up      "roam x -$roamInc"
button Swheel_down     "roam x $roamInc"
button Cwheel_up "zoom in $buttonfactor"
button Cwheel_down "zoom out $buttonfactor"

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 padpath = E:/PCB_library/Cadence_lib/Mypcb_lib/pad/ $padpath
set topology_template_path = $topology_template_path
set psmpath = E:/PCB_library/Cadence_lib/Mypcb_lib/dra/ $psmpath
set steppath = E:/PCB_library/Cadence_lib/Mypcb_lib/step_3d/ $steppath
set buttonfactor = 1.000000
set ads_sdart = gerber
unset static_shapes_fill_solid
set no_dragpopup
set infinite_cursor_bug_nt
set pcb_cursor = cross
set display_nohilitefont
unset logic_edit_enabled
set autosave_time = 10
set autosave
set autosave_name = Autosave
unset no_etch_shape_display
set no_shape_fill_dyn_ood
unset no_shape_fill
set roaminc = 96



版权声明:本文为liuxiang5119原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。