如何设置allegro的快捷键

修改变量文件,设置自定义快捷键。

Allegro可以通过修改env文件来设置快捷键,这对于从其它软件如protle或PADS迁移过来的用户来说,可以沿用以前的操作习惯,还是很有意义的。

先说一下Allegro的变量文件,一共有2个,一个是用户变量,一个是全局变量。

用户变量文件的位置,通过系统环境变量设置:系统属性-高级-环境变量,其中的Home值就是env所在目录。要注意的是,这里也有两个变量,一个是用户变量一个是系统变量,在用户变量里设置了Home之后就不需要在系统变量里再设置了,如果同时设置的话,会以用户变量的为准而忽略系统变量。比如我在用户变量里设置的Home目录为d:\temp,那么env文件就位于d:\temp\pcbenv内。
如果没有在系统属性里设置Home变量的路径,那么对于XP,会自动在C:\documents and settings\用户文件夹\pcbenv内产生env文件。对于2000,pcbenv目录位于C盘根目录下。

全局变量的位置,固定为软件安装目录内,比如我的就是:d:\cadence\spb_15.7\share\pcb\text内。

通常建议修改用户变量env文件,而不要修改全局变量env文件,至于为什么,我也不知道:)

----

Cadence Allegro 环境变量分为两种,即系统环境变量和用户环境变量,系统环境变量是全局性的,环境变量保存在Cadence软件安装路径下,而用户环境变量的优先级高于系统环境变量,即用户自定义的环境变量会覆盖掉系统的环境变量设置。

我们应该在用户环境变量中进行快捷键的设置,这样有几个好处,不破坏系统的配置文件,每个用户可以自定义自己的习惯快捷键,而且可以将配置文件保存到U盘或者网盘,随身带走,到了新的计算机环境重新指向自己的环境变量文件可以,很是方便。

如果你不知道当前的用户环境变量路径,可以在Command窗口里输入

echo $localenv

-----

另外,这2个env文件,用户变量的优先级更高,就是说如果2个文件中的设置出现冲突,那么以用户变量env文件为准。

好了,搞清楚env文件的位置后,我们就可以来修改了。

用户变量env文件,是类似于下面的格式:

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 autosave_time = 15
set autosave

我们要设置的快捷键必须放置在### User Preferences section之前。

设置快捷键指令格式 :

alias 快捷键 执行的命令
例:alias Del delete

我的部分快捷键:

alias Pgup zoom in
alias Pgdown zoom out
alias End redisplay
alias Insert add connect
alias Home zoom fit
alias Del delete
funckey ‘ ‘ iangle 90

扩展技巧:

关于快捷键可替代的命令,并不仅限于一级菜单中原已有快捷键的命令,对于有多级菜单的命令,比如Display-Show rats-Net(点亮单个网络),我们也可以用快捷键代替:alias F9 rats net。这个命令"rats net"会在你执行后出现在右下角cmd:的后面。这样可快捷的命令就随你设置了。

===========================================================================

★Allegro中的快捷键设置说明★

首先说明一下环境变量文件(evn文件),环境变量文件有两个,它们分别在系统盘的根目录下的pcbevn目录中(比如系统在C盘,那么evn文件将在c:\pcbevn下)和程序安装路径下(如Cadence 设计系统程序安装在D:\Cadence 下,则evn 文件将在

D:\Cadence\PSD_15.1\share\pcb\text目录下),前者是本地变量文件,后者是全局变量文件(系统自动建立,即为默认设置)。在本地变量文件中,主要存放的用户参数设置值(Setup->User Preferences..如库文件所在的路径等)。在全局变量文件中主要描述的是:应用程序的工作路径和系统的快捷键定义等等。在启动一个应用程序时,应用程序会根据环境变量中的参数进行初始化。

Cadence系统是一个比较开放的系统,它给用户留了比较多的定制空间。在Allegro中我们可以用alias或funckey命令来定义一个快捷键,以代替常用的设计命令。要使定义的快捷键产生作用,我们有两种方式来定义:

1、在命令窗口直接定义,但这样定义的快捷键只能在当前设计中使用,如果重新启动设计时,快捷键将会失效。命令格式如下:

alias shortkey Keyboard Commands

funckey shortkey Keyboard Commands

注意:1)如果直接键入alias或funckey命令然后回车,系统将会弹出所有快捷键列表,这相当于执行Tools->Utilities->Aliases/Function keys..命令。

  2)alias命令不能用来定义字母,原因是字母键要用来输入命令行。但是funckey命令可以用来定义单个字母为快捷键,它比alias命令更为强大,alias能定义的它都能定义,但是字母被定义成某快捷键后,该字母就不能用来输入键盘命令了。

  3)Allegro 中的所有键盘命令(Keyboard Commands )列表可以通过执行Tools->Utilities->Keyboard Commands 命令来查看,这些命令都可以设置成快捷键。

2、在本地环境变量文件中直接定义,这样定义的命令将长期有效。本地的环境变量文件是evn文件(c:\pcbevn),我们可以对它进行编辑。我们的alias命令可以在第二行开始写(第一行是:source $TELENV),例如我们以前在Protel 或PowerPCB 中常用的放大、缩小命令就可以如下定义:

alias Pgdown zoom out

alias Pgup zoom in

另外我们经常用alias命令来定义以下几个常用的shortkey:

alias ~R angle 90(旋转90 度)

alias ~F mirror(激活镜相命令)

alias ~Z next(执行下一步命令)

alias End redisplay(刷新屏幕)

alias Del Delete(激活删除命令)

alias Home Zoom fit(全屏显示)

alias Insert Define grid(设置栅格)

下面我们将常用的几个命令或快捷键做一个说明:

一、常用键盘命令在allegro中有很多键盘命令,它是通过键盘输入来激活或执行相关的命令。键盘

命令基本上包含了大部分的菜单命令。下面列举几个常用的键盘命令。 1、x 100:Y 坐标不变,X方向移动100 个单位值(以设定的原点为参考点) 2、y 100:X 坐标不变,Y方向移动100 个单位值 3、x 100 100:移动到(100,100)坐标处 pick 命令与上面的x 或y 命令功能相同,只是在执行pick 命令时会弹出一个窗口,输入想要的

坐标值就可以,与上面相对应,pick 命令也提供三种模式:pick 、pickx 和picky 。4、mirror :激活镜相命令(本命令是先激活,后选择要镜相的对象)。5、rotate :激活旋转命令(本操作要先选取对象,后执行该命令)6、angle 90: 旋转90 度(本操作要先选取对象,后执行该命令)

二、常用快捷键alias F2 done :结束当前命令alias F3 oops :取消前一次操作alias F4 cancel :取消当前命令alias F5 show element :激活“属性显示”命令alias F6 add connect :执行布线命令alias F7 vertex :激活“增加倒角”命令alias F8 zoom points :点取放大alias F9 zoom fit :满屏显示alias F10 zoom in :放大窗口alias F11 zoom out :缩小窗口alias F12 property edit :激活“属性编辑”命令funckey + subclass -+ :切换到下一层funckey - subclass --:切换到上一层.

# F1 is normally reserved by the system for Help so we don't use it
alias F12 toggle
alias F11 zoom out
alias F10 zoom in
alias F9 add connect
alias F8 oops 
alias F7 cancel 
alias F6 property edit
alias F5 show element
alias F4 pop swap
alias F3 set acon_oldcmd
alias F2 unset acon_oldcmd
alias Del slide
alias Insert custom smooth 
alias Home zoom fit
alias End redisplay
alias Pgup rotate
alias Pgdown move 
alias ~N new
alias ~O open
alias ~S save
alias ~X cup
alias ~G Define grid
alias ~R show measure
alias ~L mirror
alias ~A save_as
alias ~E change
funckey + subclass -+
funckey - subclass --

#---------------------------------------------------------------------------------------------------
# Script Aliases      Description
#---------------------------------------------------------------------------------------------------
alias g.1 "replay gp1"   # sets grid to 0.1 mil
alias g.3225 "replay gp3225"
alias g.532 "replay gp532"
alias g.25 "replay gp25"

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

# 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

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 autosave_time = 10
set autosave
set scriptpath = C:\pcbenv\scripts
set clippath = .
set devpath = F:\work\cadence\allegro\lib\devices\
set padpath = F:\work\cadence\allegro\lib\pad\
set psmpath = F:\work\cadence\allegro\lib\symbols\
set display_nodynamicarcwidth
set display_nohilitefont
unset display_nolinewidth
unset display_noskeletal_draw
unset bug_solaris_hlt_lines
set display_nocolor_dynamics
unset display_raster_ops
set display_backingstore = on
set display_nosaved_geometry = size
set display_manual_colorpriority
unset display_drcfill
set gloss_pad_shape
unset no_dynamic_zoom
set no_zoom_to_object
set no_dragpopup
set noswapripup
set logic_edit_enabled
unset no_shape_fill
set new_shape_fill_nt
set pcb_cursor = infinite
//===============================================================================

protel老手 初学allegro自定义的一些类protel快捷键

嘿嘿,自成为老手估计要被n多人鄙视了,不过好歹用protel也7年了快,不老也不小吧

最近因为项目的需要,必须学习cadence了,硬着头皮看了两天教程了,目前不是很烦allegro了,hehe

学会了定义快捷键,但是因为不熟悉cadence中的相应命令所以只定义了一点

funckey mm move                  移动物体
funckey xa dehilight             取消点亮 
funckey sn hilight                 点亮 
funckey l mirror                   镜像放置物体 
funckey g Define grid              定义栅格
funckey pl add line                画线(非连接线) 
funckey pt add connect             画连接线 
funckey ps add text                添加字符
funckey tp color                   定义颜色 
alias Pgdown zoom out               
alias Pgup zoom in
alias Space angle 90                无效???
alias ~Z oops                       上一步
alias End redisplay
alias Del Delete
alias Home Zoom fit
alias Esc cancel
funckey rm show measure             显示距离 
funckey dk define xsection          定义叠层结构

都是针对protel中习惯的快捷键定义的,还有很多没有定义,例如隐藏所有鼠线 nha,但是不知道cadence中隐藏所有鼠线的文字命令是什么所以没法写

类似的显示所有鼠线nsa

在鼠标已有命令的情况下取消所有点亮eea,在cadence中也不知道怎么表示

protel引进网表 DN               cadence ??

           查看plane分割DI         ??

            修改polygen的边界EMV     ??

           。。。。。。。。。。。。。。。。。。。

还有很多了,protel最大的好处就是键盘快捷命令多而且一幕了然,真希望cadence中能定义到所有的protel命令,这样protel转cadence估计也就是1周的事情了,哈哈,我说的是PCB布线,不包括SI等应用啊

希望大家一起来完善protel到cadence的快捷键转换

-------------------------------------------------------------------------------------以上为转载

结合各个版本之后,与PROTEL接近的操作快捷键编辑文件如下:


#

# 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 <alternative directory>

# 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 <HOME>/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 $ALLEGRO_INSTALL_ROOT/share/fsp/legends $ALLEGRO_INSTALL_ROOT/tools/fsp/legends

set FORMPATH = . $ALLEGRO_SITE/forms $GLOBAL/forms

set MENUPATH = . $ALLEGRO_SITE/menus $GLOBAL/cuimenus

 

set MATERIALPATH = . $LOCALENV $ALLEGRO_SITE $GLOBAL $GLOBAL/materials

set CAPATH = . $LOCALENV $ALLEGRO_SITE $ALLEGRO_INSTALL_DIR/channelanalysis

set AMIMODELPATH = . $LOCALENV $ALLEGRO_SITE/ami/$CDSPLAT $ALLEGRO_INSTALL_DIR/channelanalysis/ami/toolkit/dll/$CDSPLAT

 

#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

 

# Library path for Interfaces

set INTERFACEPATH = $ALLEGRO_INSTALL_ROOT/share/library/interface

        

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

# 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

 

# disable HTML datatips by default

set disable_html_datatip_style

 

# enable html as default for long message windows

set allegro_html

 

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

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

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

 

set MODULEPATH = . $ALLEGRO_SITE/modules

set TILEPATH = . $ALLEGRO_SITE/modules

set WBPATH = . $ALLEGRO_SITE/wbtiers

set PADPATH = . symbols .. ../symbols $ALLEGRO_SITE/padstacks $compalib

set PSMPATH = . symbols .. ../symbols $ALLEGRO_SITE/symbols $compalib

set pcell_lib_path = $ALLEGRO_SITE/../../rfsip/sip_pcells . sip_pcells .. ../sip_pcells $ALLEGRO_INSTALL_DIR/../rfsip/sip_pcells 

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??p,ts) DML(ndx,dml) Interconnect(iml) ABIML(abiml)

 

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

# Non-HDL Supported Design Search Path Variables

set MISCPATH = . $ALLEGRO_SITE/misc $GLOBAL

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

 

# enable license caching for better toolswap performance

set allegro_license_caching

 

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

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

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

 

# 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

funckey l mirror

funckey g Define grid

funckey pl add line 

funckey pt add connect 

alias Home zoom fit

funckey ps add text

funckey tp color   

alias End redisplay 

funckey rm show measure 

funckey dk define xsection 

alias F3 add connect

alias F4 show element

alias F5 redraw

alias F6 done

alias F7 next

alias F8 oops

alias Esc 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 r angle 90 

alias ~C copy

alias mm move 

alias xa dehilight all

funckey xa dehilight 

alias sn hilight pick

funckey sn hilight 

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 Del delete

alias ~Z undo

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'

 

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

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

 

source -q $ALLEGRO_SITE/site.env




20150521

source $TELENV
alias Pgup zoom in 
alias Pgdown zoom out 
alias End redisplay  
alias Insert add connect 
alias Home zoom fit 
alias Del delete  
alias Esc cancel
funckey ' ' angle 90
funckey mm move                  
funckey xa dehilight              
funckey sn hilight                  
funckey l mirror                    
funckey g Define grid              
funckey pl add line                
funckey pt add connect              
funckey ps add text                
funckey tp color                  
funckey rm show measure             
funckey dk define xsection          
### 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 = $padpath G:/SECTION1/LIBRARY/
set psmpath = $psmpath G:/SECTION1/LIBRARY/





  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值