Skip to content

CAD Command Overview

A CAD command in Embroidermodder is referred to as an action and the data needed for it to function is stored in the command_data. For a regular user who wishes to use more shortcuts and macros: a list of commands can be fed into the prompt similar to a GCODE file.

These are available on all platorms but with various levels of support and applicability.

ADD-GEOMETRY

index

5

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-HORIZONTAL-DIMENSION

index

6

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-IMAGE

index

7

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-INFINITE-LINE

index

8

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-LINE

index

9

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-PATH

index

10

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-POINT

index

11

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-POLYGON

index

12

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-POLYLINE

index

13

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-RAY

index

14

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-RECTANGLE

index

15

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-REGULAR-POLYGON

index

16

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-ROUNDED-RECTANGLE

index

17

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-RUBBER

index

18

main

arguments

none

menu

toolbar

tooltip

statustip

alias

shortcut

ADD-SLOT

index 19

ADD-TEXT-MULTI

index 20

ADD-TEXT-SINGLE

index 21

ADD-TO-SELECTION

index 22

ADD-TRIANGLE

index 23

ADD-VERTICAL-DIMENSION

index 24

ALERT

index 25

ALLOW-RUBBER

index 26

APPEND-HISTORY

index 27

CALCULATE-ANGLE

index 28

CALCULATE-DISTANCE

index 29

CHANGELOG

index 30

CLEAR-RUBBER

index 31

CLEAR-SELECTION

index 32

COPY

index 33

COPY-SELECTED

index 34

CUT

index 35

CUT-SELECTED

index 36

DAY

index 37

DEBUG

index 38

DELETE-SELECTED

index 39

DESIGN-DETAILS

index 40

DO-NOTHING

index 41

END

index 42

ERROR

index 43

HELP

index 44

ICON

index 45

Example Call

ICON 32

INIT

index 46

MESSAGEBOX

index 47, 3 char arrays deliminated by quotes Example Call

Example Call

> MESSAGEBOX "alert" "" ""

MIRROR-SELECTED

index 48

MOUSE-X

index 49

Example Call

> MOUSE-X
321

MOUSE-Y

index 50

> MOUSE-Y
221

MOVE-SELECTED

index 51

Example

> 

NEW

index arguments flags
52 none

Create a new EmbPattern with a new tab in the GUI.

NIGHT

index arguments flags
53 none

NUM-SELECTED

index arguments flags
54 none
> NUM-SELECTED
12

OPEN

index arguments flags
54 string

Open an EmbPattern with the supplied filename in argument 0.

> OPEN designs/flower.pes
12

PAN

index 56

PASTE

index 57

PASTE-SELECTED

index 58

PERPENDICULAR-DISTANCE

index 59

PLATFORM

index 60

PREVIEW-OFF

index 61

PREVIEW-ON

index 62

PRINT

index 63

index 64

QSNAP-X

index 65

QSNAP-Y

index 66

EXIT

index 67

REDO

index 68

ROTATE-SELECTED

index 69

RUBBER

index 70

SCALE-SELECTED

index 71

SELECT-ALL

index 72

SETTINGS-DIALOG

index 73

SET-BACKGROUND-COLOR

index 74

SET-CROSSHAIR-COLOR

index 75

SET-CURSOR-SHAPE

index 76

SET-GRID-COLOR

index 77

SET-PROMPT-PREFIX

index 78

SET-RUBBER-FILTER

index 79

SET-RUBBER-MODE

index 80

SET-RUBBER-POINT

index 81

SET-RUBBER-TEXT

index 82

SPARE-RUBBER

index 83

TIP-OF-THE-DAY

index 84

TODO

index 85

UNDO

index 86

VERSION

index 87

VULCANIZE

index 88

WHATS-THIS

index 89

WINDOW-CLOSE

index 90

WINDOW-CLOSE-ALL

index 91

WINDOW-TILE

index 92

WINDOW-CASCADE

index 93

WINDOW-NEXT

index 94

WINDOW-PREVIOUS

index 95

ZOOM

index 96

ZOOM-IN

index 97

TEST

index 98

SLEEP

index 99

LAYER-EDITOR

index 100

MAKE-LAYER-CURRENT

index 101

TEXT-BOLD

index 102

TEXT-ITALIC

index 103

TEXT-UNDERLINE

index 104

TEXT-STRIKEOUT

index 105

TEXT-OVERLINE

index 106

LAYER-PREVIOUS

index 107

ICON16

index 108

ICON24

index 109

ICON32

index 110

ICON48

index 111

ICON64

index 112

ICON128

index 113

SAVE

index arguments flags
114 none

Save the current loaded EmbPattern to the current filename.

SAVEAS

index arguments flags
115 string

Save the current loaded EmbPattern to the supplied filename in argument 0.

PAN-REAL-TIME

index 116

PAN-POINT

index 117

PAN-LEFT

index 118

PAN-RIGHT

index 119

PAN-UP

index 120

PAN-DOWN

index 121

ZOOM-REAL-TIME

index 122

ZOOM-PREVIOUS

index 123

ZOOM-WINDOW

index 124

ZOOM-DYNAMIC

index 125

ZOOM-OUT

index 126

ZOOM-EXTENTS

index 127

LAYERS

index 128

LAYER-SELECTOR

index 129

TREBLECLEF

index 130

COLOR-SELECTOR

index 131

LINE-TYPE-SELECTOR

index 132

LINE-WEIGHT-SELECTOR

index 133

ZOOM-SCALE

index 134

ZOOM-CENTER

index 135

HIDE-ALL-LAYERS

index 136

ZOOM-SELECTED

index 137

ZOOM-ALL

index 138

ADD-HEART

index 139

ADD-SINGLE-LINE-TEXT

index 140

SHOW-ALL-LAYERS

index 141

FREEZE-ALL-LAYERS

index 142

THAW-ALL-LAYERS

index 143

LOCK-ALL-LAYERS

index 144

UNLOCK-ALL-LAYERS

index 145

ADD-DOLPHIN

index 146

ADD-DISTANCE

index 147

LOCATE-POINT

index 148

QUICKSELECT

index 149

SPELLCHECK

index 150

DISTANCE

index 151

MOVE

index 152

QUICKLEADER

index 153

RGB

index 154

ROTATE

index 155

SANDBOX

index 156

ADD-SNOWFLAKE

index 157

ADD-STAR

| 158 | STAR | mouse co-ords |

Adds a star to the vector layer at the mouse co-ords.

DELETE

index 159

SCALE

index arguments flags
160 selected objects, real number

Scale all selected objects by the number supplied, without selection scales the entire design.

SINGLE-LINE-TEXT

index 161

SYSWINDOWS

index 162

TRIM

index 163 selected stitches

Sets the flag for the stitches selected to TRIM.

SPLIT

index 164 A selected line in the vector layer. Otherwise 2 mouse co-ords in sequence.

Seperates stitch blocks by cutting threads between those either side of a line supplied by the user then rerouting the stitches.

TIME

index 165

Prints the current time as ISO formatted UTC to the console.

ZOOMFACTOR

index 166 argument real number

Sets the zoom factor to the supplied argument.

PRODUCT

index 167

Prints the name and build code of the running version of Embroidermodder to disambiguate between forks and build versions. The string may only start with embroidermodder if the build is from the official Embroidermodder project under the terms of the license.

OFFSET

index arguments flags
168 mouse co-ords

Shifts the selected objects by the amount given by the mouse co-ordinates.

FIND

index 169 argument int

Select the stitch at the index given and center the view on it.

RECORD

index 170

Start recording all user input that passes through the actuator (i.e. actions from this table, with all the data passed as arguments) for forming macros. Stop recording if RECORD/PLAYBACK/END is issued.

BREAK_AT_POINT

index 171

BREAK_2_POINTS

index 172

UNITS

index 173

DIVIDE

index 174

GRID

index 175

GRIPHOT

index 176

GRIPCOLOR

index 177

GRIPCOOL

index 178

GRIPSIZE

index 179

AREA

index 180

| 15 | AREA | Selected objects |

CHAMFER

index 181

PICK-ADD

index 182

FILLET

index 182

EXTEND

index 183

PROGRAM

index 184

Aliases PROG

PLAYBACK

index 185

HIGHLIGHT

index 186

ARRAY

index 187

ARC-RT

index 188

FIXME: Not sure what this one means.