The <design_info> XML element provides detailed metadata about an embroidery design, including machine settings, dimensions, colorways, stops, and optional lettering or monogram objects. This structure is returned by
several API functions to describe the generated or analyzed design.
XML structure
<design_info
machine_name="Melco" <!-- Embroidery machine format -->
num_stitches="49569" <!-- Total number of stitches -->
num_colours="7" <!-- Number of colors used -->
num_trims="21" <!-- Number of trims -->
num_objects="100" <!-- Number of embroidery objects -->
num_colour_changes="13" <!-- Number of color changes -->
height="215.572222" <!-- Height in mm -->
width="138.633333" <!-- Width in mm -->
>
<colorways> <!-- List of design colorways -->
<colorway
name="Colorway 1" <!-- Name of the colorway -->
file="Colorway 1.png" <!-- Optional TrueView bitmap filename (output only) -->
bkg_colr="12632256" <!-- Background color (always provided) -->
current="true" <!-- Indicates if this is the current colorway -->
>
<threads> <!-- Ordered list of threads for this colorway -->
<thread ... />
<thread ... />
<thread ... />
</threads>
</colorway>
<colorway ... /> <!-- Additional colorways, if any -->
</colorways>
<stop_sequence> <!-- Sequence of machine stops during stitching -->
<stop_record
color_idx="0" <!-- Index to colorway's thread list (can be -1) -->
num_stitches="73" <!-- Stitches in this stop -->
element="" <!-- Optional descriptive label -->
/>
<stop_record ... />
<stop_record ... />
</stop_sequence>
<lettering_objects> <!-- Optional list of lettering objects -->
<lettering_object index="0">
<simple_lettering ... /> <!-- Lettering configuration -->
<thread ... /> <!-- Associated thread -->
</lettering_object>
</lettering_objects>
<monogram_objects> <!-- Optional list of monogram objects -->
<monogram_object index="0">
<monogram_lettering ... /> <!-- Monogram lettering -->
<monogram_ornament ... /> <!-- Monogram ornament -->
</monogram_object>
</monogram_objects>
</design_info>
Usage
The <design_info> XML is returned by the following API endpoints:
Output only:
Elements
✅ <design_info>
Contains the core information about the
embroidery design:
Attribute | Details |
machine_name | The embroidery machine format – e.g. Melco. |
num_stitches | Total stitch count. When estimated – e.g. by api/newLetteringPreview – the accuracy is ±10%. |
num_colours | Number of colors. When estimated, this is always 1. |
num_trims | Number of trims. When estimated, this is always 0. |
num_objects | Number of embroidery objects. |
num_colour_changes | Number of color changes. When estimated, this is always 0. |
height and width | Design dimensions in millimeters.
|
✅ <colorways>
Contains one or more colorway elements. Each <colorway> includes:
Attribute | Details |
name | Colorway name for use in design decorations. |
file | Optional bitmap file – only returned by api/designTrueview. |
bkg_colr | Background color (decimal RGB). |
current | Indicates the current colorway. |
threads | Ordered list of threads for this colorway. |
✅ <stop_sequence>
Describes the embroidery
machine’s stop sequence: Each <stop_record> includes:
Attribute | Details |
color_idx | Zero-based index into the colorway’s thread list. May be -1 if no color is applicable.
|
num_stitches | Number of stitches for this stop. |
element | Optional text to describe the stop. |
✅ <lettering_objects>
Optional list of lettering_object items. Each object contains:
Attribute | Details |
index | Zero-based index. |
simple_lettering | Lettering settings. |
thread | Thread used for this lettering. |
Lettering objects inside Team Name Lettering or Monograms are not included here, as they cannot be modified individually.
✅ <monogram_objects>
Optional list of monogram_object items. Each includes:
Attribute | Details |
index | Position in the monogram list. |
monogram_lettering | Monogram lettering settings. |
monogram_ornament | Monogram ornament settings. |
Estimation accuracy
When generated by api/newLetteringPreview, some values in design_info are estimated for performance. Some fields are estimated exactly, others approximately:
Field | Estimation notes |
| num_stitches | Estimated within ±10% |
num_colours | Always estimated as 1 |
num_trims | Always estimated as 0 |
num_colour_changes | Always estimated as 0 |
Others | Estimated to match actual values |
- file in colorway is only returned by api/designTrueview.
- Always use returned colorway names in your design decorations.
- The color_idx in stop_record links stops to specific threads in any colorway.
- Background color (bkg_colr) is always provided, pulled from:
- Template (for stitch formats like DST, PES)
- Design file (for native formats like EMB, ART)
- Color index (color_idx) may be -1 for stops without a thread color – e.g. in borer designs.
- Lettering/monogram objects tied to team name lettering or monograms are excluded.
- The design_info structure may be extended in future versions.