HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

AutoCAD shortcut key collection – a must-read for fast drawing!

2009-02-12View Original

Thread Content

AutoCAD offers many commands, but only about 20 percent of them are the most commonly used during drawing. When entering commands via the keyboard, some commonly used commands are quite long, such as BHATCH (filling) and EXPLODE (decomposing); this results in many keystrokes being required, which slows down the drawing speed. Although AutoCAD offers both comprehensive menus and toolbars as ways to enter commands, to increase drawing speed, it is necessary to master the quick command-entry methods provided by AutoCAD. While working on AutoCAD design, training, and teaching research, the author has gained some experience in the use and management of shortcut commands; these experiences are now summarized here for reference when using AutoCAD 2000. I. Overview: So-called shortcut commands are shortcuts defined by AutoCAD to increase drawing speed; they use one or a few simple letters to represent common commands, allowing us to avoid having to memorize numerous long command names, nor do we need to search through menus and toolbars to execute a command. All defined shortcut commands are saved in the ACAD.PGP file located in the SUPPORT subdirectory of the AutoCAD installation directory; we can define our own frequently used shortcut commands by modifying the contents of this file. Every time we create or open an AutoCAD drawing file, CAD automatically searches for the SUPPORT directory in the installation path, finds the ACAD.PGP file, and loads it. When AutoCAD is running, we can use the shortcut commands defined in the ACAD.PGP file through the command line to perform an action; for example, if we want to draw a straight line, we simply need to enter the letter “L” in the command line. II. Naming rules for shortcut commands 1. Shortcut commands are usually the first or first two letters of the command’s English name; in some cases, it’s the first three letters. For example, the shortcut command for Line is “L”” ; The shortcut command for Copy is “CO”” ; The shortcut key for Linear Scale (LTScale) is “LTS”. During use, try using the first letter of the command; if that doesn’t work, use the first two letters, or at most the first three. In other words, AutoCAD shortcut commands generally consist of no more than three letters. If even the first three letters of a command don’t work, you will have to enter the full command. 2. Another type of shortcut commands usually consists of “Ctrl key + a letter,” or they are defined using function keys F1~F8. For example, Ctrl + “N”, Ctrl + “O”, Ctrl + “S”, and Ctrl + “P” correspond to creating a new file, opening a file, saving a file, and printing a file respectively ; F3 represents “object snap”. 3. If the first letter of some commands is the same, then for the commonly used commands the first letter is used, while for the other commands the first two or three letters can be used to represent them. For example, “R” stands for Redraw, while “RA” stands for Redrawall ; For example, “L” stands for Line, “LT” stands for LineType, and “LTS” stands for LTScale. 4. There are a few exceptions that we need to remember; for example, “Modify Text” (DDEDIT) is not “DD”, but rather “ED”” ; Also, “AA” stands for Area, “T” stands for Mtext, and “X” stands for Explode. III. Definition of shortcut commands As has been mentioned earlier, all the shortcut commands defined in AutoCAD are saved in the ACAD.PGP file. ACAD.PGP is a plain-text file that can be edited using an ASCII text editor such as EDIT in DOS, or directly with Notepad that is included in WINDOWS. Users can add shortcuts for some Auto CAD commands to the file themselves. Typically, shortcut commands use one or two easy-to-remember letters to replace the full name of the command. The format for defining shortcut commands is as follows: shortcut command name, * full name of the command. For example, CO, * COPY; that is, after entering the shortcut command, a comma is followed by the full name of the command that it replaces. Commands in AutoCAD must be prefixed with an asterisk. (I) Letter-based commands: 1. Object properties: ADC, *ADCENTER (Design Center, “Ctrl+2”) CH, MO *PROPERTIES (Modify properties, “Ctrl+1”) MA, *MATCHPROP (Property matching) ST, *STYLE (Text style) COL, *COLOR (Set color) LA, *LAYER (Layer operations) LT, *LINETYPE (Line type) LTS, *LTSCALE (Line scale) LW, *LWEIGHT (Line width) UN, *UNITS (Drawing units) ATT, *ATTDEF (Property definition) ATE, *ATTEDIT (Edit properties) BO, *BOUNDARY (Create boundaries, including closed polylines and regions) AL, *ALIGN (Align) E*T, *QUIT (Exit) EXP, *EXPORT (Export to other file formats) IMP, *IMPORT (Import files) OP, PR *OPTIONS (Customize CAD settings) PRINT, *PLOT (Print) PU, *PURGE (Clear junk) R, *REDRAW (Regenerate) REN, *RENAME (Rename) SN, *SNAP (Snap to grid) DS, *DSETTINGS (Set polar tracking) OS, *OSNAP (Set snap mode) PRE, *PREVIEW (Print preview) TO, *TOOLBAR (Toolbar) V, *VIEW (Named views) AA, *AREA (Area) DI, *DIST (Distance) LI, *LIST (Display drawing data information) 2. Drawing commands: PO, *POINT (Point) L, *LINE (Line) XL, *XLINE (Ray) PL, *PLINE (Polyline) ML, *MLINE (Multi-line) SPL, *SPLINE (Spline) POL, *POLYGON (Regular polygon) REC, *RECTANGLE (Rectangle) C, *CIRCLE (Circle) A, *ARC (Arc) DO, *DONUT (Donut shape) EL, *ELLIPSE (Ellipse) REG, *REGION (Region) MT, *MTEXT (Multiline text) T, *MTEXT (Multiline text) B, *BLOCK (Define block) I, *INSERT (Insert block) W, *WBLOCK (Define block file) DIV, *DIVIDE (Divide into equal parts) H, *BHATCH (Fill) 3. Modification commands: CO, *COPY (Copy) MI, *MIRROR (Mirror) AR, *ARRAY (Array) O, *OFFSET (Offset) RO, *ROTATE (Rotate) M, *MOVE (Move) E, DEL key *ERASE (Delete) X, *EXPLODE (Explode) TR, *TRIM (Trim) EX, *EXTEND (Extend) S, *STRETCH (Stretch) LEN, *LENGTHEN (Lengthen line) SC, *SCALE (Scale) BR, *BREAK (Break) CHA, *CHAMFER (Chamfer) F, *FILLET (Fillet) PE, *PEDIT (Edit polyline) ED, *DDEDIT (Edit text) 4. Window scaling: P, *PAN (Pan) Z + Space + Space, *Real-time scaling Z, *Zoom in Z+P, *Return to previous view Z+E, *Show entire drawing 5. Dimensioning: DLI, *DIMLINEAR (Linear dimension) DAL, *DIMALIGNED (Aligned dimension) DRA, *DIMRADIUS (Radius dimension) DDI, *DIMDIAMETER (Diameter dimension) DAN, *DIMANGULAR (Angle dimension) DCE, *DIMCENTER (Center dimension) DOR, *DIMORDINATE (Point dimension) TOL, *TOLERANCE (Dimension tolerance) LE, *QLEADER (Quick leader) DBA, *DIMBASELINE (Baseline dimension) DCO, *DIMCONTINUE (Continue dimension) D, *DIMSTYLE (Dimension style) DED, *DIMEDIT (Edit dimension) DOV, *DIMOVERRIDE (Override dimension system variables)

(II) Common CTRL shortcuts: [CTRL] + 1 *PROPERTIES (Modify properties) [CTRL] + 2 *ADCENTER (Design Center) [CTRL] + O *OPEN (Open file) [CTRL] + N, M *NEW (Create new file) [CTRL] + P *PRINT (Print file) [CTRL] + S *SAVE (Save file) [CTRL] + Z *UNDO (Undo) [CTRL] + X *CUTCLIP (Cut clip) [CTRL] + C *COPYCLIP (Copy clip) [CTRL] + V *PASTECLIP (Paste clip) [CTRL] + B *SNAP (Snap to grid) [CTRL] + F *OSNAP (Object snap) [CTRL] + G *GRID (Grid) [CTRL] + L *ORTHO (Ortho mode) [CTRL] + W *Object tracking [CTRL] + U *Polar tracking

(III) Common function keys: [F1] *HELP (Help) [F2] *Text window [F3] *OSNAP (Object snap) [F7] *GRIP (Grid grip) [F8] *ORTHO (Ortho mode)
Reply #22009-02-16
Stop posting more information about the popularity of these keyboard shortcuts; this article has already appeared on this forum N+X+Y times. Everyone knows that now; let’s share something meaningful. It is recommended to search for relevant content before posting.
Reply #32009-02-16
definitely useful
Reply #42009-02-16
The calls are a bit more in-depth; they were all written by me. Please share your opinions! ;===========================================================Left mouse button ;;========================================Custom function library ;;===== First, obtain the AutoCAD object (vl-load-com) (setq *acad* (vlax-get-acad-object)) ;;===== Then get the current document (setq *doc* (vlax-get-property *acad* ‘ActiveDocument)) ;;===== After that, send a command to the current document; the command parameters are strings. ;;===== The format of the command is the same as when entering commands manually; remember to use spaces to indicate confirmation. ;;===== If there is no space at the end, the command will be written to the command line but not executed immediately. ;;For example: (defun c:B () (vla-sendcommand *doc* “BLOCK ”)) Here, “B” is a custom shortcut command, while “BLOCK ” is a system command. ;;=======================================List of Shortcut Commands;;=====Single-key commands (defun c:A () (command “ARC”)); Arc (defun c:B () (vla-sendcommand *doc* “BLOCK”)); Block definition (defun c:C () (command “CIRCLE”)); Circle (defun c:D () (vla-sendcommand *doc* “DIMSTYLE”)); Dimension style (defun c:E () (command “ERASE”)); Delete (defun c:F () (COMMAND “FILLET”)); Fillet (defun c:R () (COMMAND “REGEN”)); Regenerate model (defun c:S () (COMMAND “STRETCH”)); Stretch (defun c:T () (COMMAND “_.TRIM” „“)); Trim (automatically trims the nearest part) (defun c:V () (COMMAND “MOVE”)); Move (defun c:W () (vla-sendcommand *doc* “WBLOCK”)); Write block (defun c:X () (COMMAND “EXPLODE”)); Explode (defun c:Z () (COMMAND “ZOOM”)); Zoom ;=====Combined-key commands (defun c:ZX () (COMMAND “LINE”)); Line (defun c:CR () (vla-sendcommand *doc* “INSERT”)); Insert (defun c:XX () (COMMAND “OPTIONS”)); Options (defun c:GS () (COMMAND “MATCHPROP”)); Format brush (defun c:BZ () (SETVAR “OSMODE” 15359)); Object snap (defun c:AD () (COMMAND “APPLOAD”)); Load application (defun c:SC () (COMMAND “SCALE”)); Zoom in/out (defun c:ST () (vla-sendcommand *doc* “STYLE”)); Text style (defun c:RE () (COMMAND “RECTANG”)); Rectangle (defun c:RT () (COMMAND “ROTATE”)); Rotate (defun c:DV () (COMMAND “DIVIDE”)); Divide into equal parts (defun c:FD () (COMMAND “FIND”)); Search (defun c:BB () (vla-sendcommand *doc* “BHATCH”)); Hatch (defun c:BR () (COMMAND “BREAK”)); Break (defun c:EX () (COMMAND “_.EXTEND” „“)); Extend (automatically extends to the nearest intersection point) (defun c:VE () (COMMAND “MOVE”)); Move (defun c:CF () (COMMAND “CHAMFER”)); Chamfer (defun c:DW () (COMMAND “dimaligned”)); Diagonal dimensioning (defun c:WW () (COMMAND “MIRROR”)); Mirror (defun c:ED () (COMMAND “PEDIT”)); Convert between multi-segment and single-line (defun c:DB () (COMMAND “POLYGON”)); Polygon (defun c:EE () (vla-sendcommand *doc* “LINETYPE”)); Line type manager (defun c:AE () (vla-sendcommand *doc* “LAYER”)); Layer manager (defun c:DT () (COMMAND “DIST”)); Measure distance (defun c:EF () (vla-sendcommand *doc* “XREF”)); Reference (defun c:TT () (COMMAND “TEXT”)); Single-line text (defun c:DE () (setvar “osmode” 15359) (COMMAND “DIMLINEAR”)); Linear dimensioning (defun c:DR () (COMMAND “DIMRADIUS”)); Radius dimensioning (defun c:DD () (COMMAND “DIMDIAMETER”)); Diameter dimensioning (defun c:DA () (COMMAND “DIMANGULAR”)); Sector dimensioning ;;=====Modifying shortcuts;; For example, change shortcut BBB to AAA; (defun c:AAA () ;(C:BBB) ;) ;Command compression format; (defun c:Abbreviation () (command “Command” “Options in command line” “Options in command line” “Options in command line” „“)); Example: Use sw key as a shortcut for entering southwest view; the program is; (defun c:sw () (command “-view” “swiso”)); Use combination key qc1 to change a line to one with color 8, line type as center dash, and line scale of 1000; the program is; (defun c:qc1 () (command “change” (ssget) „“ “p” “ltype” “center” “c” “10” “lts” “1000” „“)); Command merging format; (defun c:Abbreviation () (command “Command 1” “Options in command line” pause pause “Command 2” “Options in command line” „“)); Example 4: Use combination key a4 to draw a quadrilateral and fill it; the program is; (defun c:a4 () (command “polygon” “4” “e” pause pause “hatch” “s” “l” „“)); D. Syntax explanation: ; defun indicates defining a function. ; c: indicates that the command is independent of the hard drive. ; ssget pauses, waiting for the user to make a selection before proceeding with subsequent operations. It’s equivalent to right-clicking. ; pause pauses, waiting for the user to specify a point before continuing. ; „“ is used to end the selection. Last edited by aicr317 on 2009-2-16 15:46]
Reply #52009-02-22
There are too many commands; it’s impossible to remember them all. It’s enough to remember a few of the most commonly used ones.
Reply #62009-02-23
Hehe, I know them all, but it’s closely related to my student days

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.