티스토리 뷰

** AUTOCAD의 단축 명령 지정


오토캐드는 단축명령을 지정할 수 있는 설정파일이 있다.

예를 들어서 trim이라는 명령의 단축명령을 tr에서 tt로 변경하고자 하면 다음 파일을 변경해주면된다.


경로는 다음 그림에서 확인하자!!

사용자 삽입 이미지

위 그림에서 경로를 확인하여 파일을 메모장으로 열어보자.


그럼 다음과 같은 형태의 문구를 확인 할 수 있다.


3A,        *3DARRAY
3DO,       *3DORBIT
3F,        *3DFACE
3P,        *3DPOLY
A,         *ARC
ADC,       *ADCENTER
AA,        *AREA
AL,        *ALIGN
AP,        *APPLOAD
AR,        *ARRAY
-AR,       *-ARRAY
ATT,       *ATTDEF


등 등.....


위 구문들을 확인해보면

콤마(,) 앞에는 단축 명령이고 뒤에는 전체 명령어임을 알 수 있다.

만약, rotate3d의 단축명령을 만들고 싶다면


ro3, *rotate3d


라고 추가를 하면 ro3라는 단축명령이 rotate3d 명령을 수행하는 것이다.





** 버젼별 단축키가 지정 파일의 위치

l AutoCAD R14 ~ 2002의 단축키 파일 위치
→ C:\Program Files\AutoCAD R14~2002\SUPPORT\acad.pgp

l AutoCAD LT 2000 ~ LT 2002의 단축키 파일 위치
→ C:\Program Files\AutoCAD LT 2000 ~ LT 2002\SUPPORT\aclt.pgp

lAutoCAD 2004의 단축키 파일 위치
→ C:\Documents and Settings\user(사용자 지정 폴더 이름)\Application Data\Autodesk\AutoCAD 2004\R16.0\kor\Support\acad.pgp

l AutoCAD LT 2004의 단축키 파일 위치
→ C:\Documents and Settings\user(사용자 지정 폴더 이름)\Application Data\Autodesk\AutoCAD LT 2004\R9\kor\Support\aclt.pgp
 
위의 위치에 있는 acad.pgp(또는 aclt.pgp) [pgp는 Program Parameter의 약어] 파일에는 몇 백개의 단축키가 설정이 되어 있습니다. 크게 External Command(외부 명령)부분과 Command Alias(별칭 명령) 부분으로 구분이 되며, 실제로 외부 명령을 다 입력하여 사용하기에는 너무 길고 작업하는 속도 또한 느려지게 되기 때문에 단축키를 지정하여 사용하는 것이 작업의 효율성면에서는 매우 중요한 부분입니다.

<별칭>, * <전체 명령어>
3P,          * 3DPOLY
A,           * ARC
AA,          * AREA
AD,          * ATTDISP
AE,          * ATTEDIT

단축키 파일을 열어보면 위와 같은 형식으로 명령어들이 나열되어 있는 것을 볼 수 있습니다.
<별칭>에는 하나, 둘~세 글자 정도의 키를 입력하고 쉼표(,)는 별칭의 다음에 바로 붙여주어야 하며, 다음에는 전체 명령어를 입력하면 됩니다. 그러나, 전체 명령어 앞에는 항상 (*)문자를 붙여주어야 하며, 그 외의 여백은 상관이 없으므로 위의 몇가지 사항만 지켜주시면 됩니다. 단, 전체 명령어는 틀린데 별칭이 똑같이 설정되어 있는 경우에는 어느 한가지 명령만 적용이 되므로 주의하시기 바랍니다.


++++


유의할 점은 파일은 꼭 autocad를 종료한 상태에서 편집을 해주어야하며, 편집 후 autocad를 실행하여 확인 할 수 있다.


개인마다 단축명령의 형태를 다양하게 설정할 수 있으므로 만약 자신이 알고 있는 단축명령이 안되더라고 당황하지 말고 침착하게 acad.pgp파일을 확인해보자.


다음은 이 파일에 첨부되어 있는 설명 부분이다. 잘 읽어보면 정확한 정보를 확인 할 수 있다.

++++


;  AutoCAD Program Parameters File For AutoCAD 2000
;  External Command and Command Alias Definitions

;  Copyright (C) 1997-2000 by Autodesk, Inc.

;  Each time you open a new or existing drawing, AutoCAD searches
;  the support path and reads the first acad.pgp file that it finds.

;  -- External Commands --
;  While AutoCAD is running, you can invoke other programs or utilities
;  such Windows system commands, utilities, and applications.
;  You define external commands by specifying a command name to be used
;  from the AutoCAD command prompt and an executable command string
;  that is passed to the operating system.

;  -- Command Aliases --
;  You can abbreviate frequently used AutoCAD commands by defining
;  aliases for them in the command alias section of acad.pgp.
;  You can create a command alias for any AutoCAD command,
;  device driver command, or external command.

;  Recommendation: back up this file before editing it.

;  External command format:
;  <Command name>,[<DOS request>],<Bit flag>,[*]<Prompt>,

;  The bits of the bit flag have the following meanings:
;  Bit 1: if set, don't wait for the application to finish
;  Bit 2: if set, run the application minimized
;  Bit 4: if set, run the application "hidden"
;  Bit 8: if set, put the argument string in quotes
;
;  Fill the "bit flag" field with the sum of the desired bits.
;  Bits 2 and 4 are mutually exclusive; if both are specified, only
;  the 2 bit is used. The most useful values are likely to be 0
;  (start the application and wait for it to finish), 1 (start the
;  application and don't wait), 3 (minimize and don't wait), and 5
;  (hide and don't wait). Values of 2 and 4 should normally be avoided,
;  as they make AutoCAD unavailable until the application has completed.
;
;  Bit 8 allows commands like DEL to work properly with filenames that
;  have spaces such as "long filename.dwg".  Note that this will interfere
;  with passing space delimited lists of file names to these same commands.
;  If you prefer multiplefile support to using long file names, turn off
;  the "8" bit in those commands.

;  Examples of external commands for command windows

CATALOG,   DIR /W,         8,File specification: ,
DEL,       DEL,            8,File to delete: ,
DIR,       DIR,            8,File specification: ,
EDIT,      START EDIT,     9,File to edit: ,
SH,        ,               1,*OS Command: ,
SHELL,     ,               1,*OS Command: ,
START,     START,          1,*Application to start: ,
TYPE,      TYPE,           8,File to list: ,

; Examples of external commands for Windows
; See also the (STARTAPP) AutoLISP function for an alternative method.

EXPLORER,  START EXPLORER, 1,,
NOTEPAD,   START NOTEPAD,  1,*File to edit: ,
PBRUSH,    START PBRUSH,   1,,


; Command alias format:
;   <Alias>,*<Full command name>

;  The following are guidelines for creating new command aliases.
;  1. An alias should reduce a command by at least two characters.
;      Commands with a control key equivalent, status bar button,
;      or function key do not require a command alias.
;      Examples: Control N, O, P, and S for New, Open, Print, Save.
;  2. Try the first character of the command, then try the first two,
;      then the first three.
;  3. Once an alias is defined, add suffixes for related aliases:
;      Examples: R for Redraw, RA for Redrawall, L for Line, LT for
;      Linetype.
;  4. Use a hyphen to differentiate between command line and dialog
;      box commands.
;      Example: B for Block, -B for -Block.
;
; Exceptions to the rules include AA for Area, T for Mtext, X for Explode.

최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함