0% found this document useful (0 votes)
129 views3 pages

AutoCAD - Macros

macros en autocad

Uploaded by

Alvaro Laura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views3 pages

AutoCAD - Macros

macros en autocad

Uploaded by

Alvaro Laura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ABOUT COMMAND MACRO STRINGS

Command macro strings are used to instruct AutoCAD which commands and system variables to
execute along with any expected input allowed at the Command prompt. Special characters, DIESEL
expressions and AutoLISP programming code can also included in a command macro string.

You can create custom command macro strings that allow help to:
 Reduce repetitive tasks
 Enforce CAD standards
 Simplify workflows

You define and edit command macro strings with the:


 Customize User Interface Editor (AutoCAD and AutoCAD LT for Windows)
 Command Macro Editor (AutoCAD for Windows only; not supported in AutoCAD‐based toolsets or
AutoCAD LT)
 Customize dialog box (AutoCAD for Mac OS only)

COMMAND MACRO STRING BASICS


A command macro string is defined as a series of commands and expected options and values with a
specialized syntax, but is similar to the input you enter at the AutoCAD Command prompt. When you
interact with the program's user interface, such as a clicking button on the ribbon or an item on a
shortcut menu, you are executing a command macro string. The syntax of a command macro can be
as simple as a single command name (such as CIRCLE) or more complex with the inclusion of special
characters (such as ^C^C_.CIRCLE \1)

ACTION MACROS
Action macros are a series of actions (commands) that you record and can be played back in an
active drawing. You use the Action Recorder to save the commands as an action macro (. ACTM file).
Using action macros can really increase productivity by automating repetitive tasks.
MACROS SPECIAL CHARACHTER
The following list is the most used special characters in command Macro Strings:
DESCRIPTION CHARACTER

Esc (Cancels the active command or command option)


^C Caret (C)

; Semi‐colon
Enter
^M

Tab ^I

Enters a space; a blank space between command sequences in a Blank


Space
command is equivalent to pressing the SPACEBAR Space

Pauses for user input (allows the user to enter a value, specify a
\ Backslash
point, or select objects)

Allows you to access a built‐in AutoCAD command even if it was


. Period
undefined using the UNDEFINE command

Invokes the command transparently '

Translates AutoCAD commands _ Underscore

Displays the current top‐level pull‐down, shortcut, or image


=*
menu

Repeats a command until another command is started or the


*
current command is ended

Introduces a conditional DIESEL macro expression ($M=) $

Turns Snap on or off (equivalent to CTRL+B) ^B

Turns Dynamic UCS on or off (equivalent to CTRL+D) ^D

Sets the next isometric plane (equivalent to CTRL+E) ^E

Turns Grid on or off (equivalent to CTRL+G) ^G

BACKSPACE ^H

Turns Ortho on or off ^O

Turns MENUECHO on or off ^P

Echoes all prompts, status listings, and input to the printer


^Q
(equivalent to CTRL+Q)

Turns tablet on or off (equivalent to CTRL+T) ^T

Changes the current viewport ^V

Null character that suppresses the automatic addition of


^Z
SPACEBAR at the end of a command
MACROS (EXAMPLES)

1. COMMAND: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:
Specify radius of circle or [Diameter] <2.5000>: 5
Here is what the final command macro string might look:
^C^C_CIRCLE;\10;

Sr. No. Syntax Description


1 ^C^C press Esc twice before executing the macro
2 ._ Independent of the current AutoCAD language pack
3 CIRCLE Starts the CIRCLE command
4 ; Enter Key
5 \ Prompts for the center point at which the circle is to be drawn
6 10 Specifies the radius of the circle
7 ; Enter (Exits the CIRCLE command)

2. COMMAND: POLYGON
Enter number of sides <4>: 6
Specify center of polygon or [Edge]:
Enter an option [Inscribed in circle Circumscribed about circle] < C >: I
Specify radius of circle: 10
Here is what the final command macro string might look:
^C^C_POL;6;\I;10;

Sr. No. Syntax Description


1 ^C^C press Esc twice before executing the macro
2 ._ Independent of the current AutoCAD language pack
3 POL Starts the POLYGON command
4 ; Enter Key
5 6; Number of sides and Enter key
6 \ Prompts for the center point at which the Polygon is to be drawn
7 I; Inscribed Circle and Enter Key
8 10 Specifies the radius of the circle
9 ; Enter (Exits the POLYGON command)

Reference: www.Autodesk.com

You might also like