Alphabetical List of Macro Commands

See also Alphabetical List of Standard Commands

 

ACTIONM

Define action buttons using parameters

 

APND

Concatenate text strings

 

ASKBOX

Display Yes/No message box

 

ATTRIBM

Define symbol attribute, bypassing dialog

 

 

 

 

CATALOG

Load an FSC symbol catalog file

 

CPARYM

Insert part by name as circular array

 

 

 

 

^D

Pause for user input

 

DELSHT

Delete named sheet

 

DISTFMT

 

DSPECH

Set dimension text height

 

 

 

 

ECOFF

Suppress echo of the prompt line

 

ECON

Restores echo of the prompt line

 

ENDM

End Macro definition

 

EXITAM

Exit All macros

 

EXITM

Exit local macro

 

 

 

 

GBRNG

Store angle point to point

 

GDIST

Store distance between points

 

GE

Get entity

 

GETX

Get X coordinate

 

GETY

Get Y coordinate

 

GFNO

Get open file name

 

GFNOP

Get open file name using * or ? pattern

 

GFNS

Get save file name

 

GNNSP

Get save file name using * or ? pattern

 

GL

Get line

 

GN

Get number (integer)

 

GO

Go to label

 

GOLAYER

Makes a layer current, adding it if it does not exist in the drawing.

 

GOTO

Go to label

 

GP

Get point

 

GR

Get reference entity (on frozen layers)

 

GRFN

Get relative file path name

 

GV

Get real (floating-point) value

 

GW

Get word

 

 

 

 

HIDESHT

Hide named sheet

 

 

 

 

IFDEF

Branch if variable is already defined

 

IFERR

Branch if error flag is set

 

IFN

Branch if real.expression < 0

 

IFP

Branch if real.expression > 0

 

IFZ

Branch if real.expression = 0

 

 

 

 

KEEPTHA

Keep last text height and angle as current.

 

 

 

 

LOADM

Load a drawing file, bypass dialog

 

LOADMACM

Load a macro

 

 

 

 

MACRO

Begin Macro Definition

 

MENUDM

Load Menu file by name, becomes session default menu

 

MENUM

Load Menu file by name

 

 

 

 

NOSTEP

Turn off macro debug mode

 

 

 

 

OPENDOC

Opens specified file in the associated application

 

 

 

 

PARTM

Insert part by name

 

PARYM

Insert part by name as rectangular array

 

PAUSE n

Halt macro execution for n seconds, wait for keypress

 

 

 

 

RENAMEM

RENAME drawing file command, bypass dialog

 

RUNAPP

Run external application

 

 

 

 

SAVEASM

Save drawing file by name, bypass dialog

 

SAVEDXF

Save drawing file as DXF file

 

SAVEMACM

Save macro file by name

 

SAVEVARS

Save variable values

 

SCRIPTM

Load and run script by name, bypass dialog

 

SELBYA

Select entities by: All

 

SELBYC

Select entities by: Color

 

SELBYD

Select entities using the Dialog box

 

SELBYE

Select entities by: Each

 

SELBYL

Select entities by: Layer

 

SELBYP

Select entities by: Prior selection

 

SELBYW

Select entities by: Window

 

SELREST

Restore the saved SELBY mode

 

SELSAVE

Save the current SELBY mode

 

SETDECP

Set Units decimal places code

 

SETFRAC

Set Units fraction rounding code

 

 

 

 

SHOWSHT

Show named sheet

 

STEP

Turn on macro debug mode

 

INSSYM

Insert Symbol Reference by name

 

 

 

 

TEMPLATEM

Set template by name, bypass dialog

 

TEXTM

Insert text typed on command line

 

TFILEM

Insert text file by name

 

TSPECA

Set text angle

 

TSPECF

Set text font by name (or LIKE)

 

TSPECH

Set text height

 

TSPECJ

Set text justification

 

TSPECP

Set text spacing

 

TSPECS

Set text style

 

TSPECT

Set text stretch factor

 

 

 

 

UNITM

Set inches per drawing unit

 

 

 

 

WRITEM

Create part by name

 

 

 

 

XHOFF

Switch crosshair cursor off

 

XHON

Switch crosshair cursor on

 

 

 

 

ZNAMEM

Zoom to entered view name , bypassing dialog