The monogram_objects element lets you modify existing monogram objects inside a design. Use it with editDesign or editDesignTrueview APIs. Whether a design has monogram objects is
shown by designInfo or designTrueview.
XML structure
Usage
Each <monogram_object> block targets
one monogram object in your design:
- index → the zero-based index of the monogram in the design.
You can change:
- text (text)
- font (alphabet_name)
- height
- thread color (<thread>)
Changing ornaments is not supported yet.·
- Multiple <monogram_object> edits can be done in one request.
- Only the parameters you supply
are changed. If you only change text, nothing else is touched.
- Special fonts with embedded colors/functions
may restrict color changes.
Examples
Change the color of the first monogram:
<monogram_objects>
<monogram_object index="0">
<monogram_lettering>
<thread color="65535" code="xx" brand="xx" description="xx"
/>
</monogram_lettering>
</monogram_object>
</monogram_objects>
Change the text of the first monogram:
<monogram_objects>
<monogram_object index="0">
<monogram_lettering text="XYZ"/>
</monogram_object>
</monogram_objects>
Change text, style, and font of monogram; text and color of second monogram:
<monogram_objects>
<monogram_object index="0">
<monogram_lettering text="XYZ" style="style_17" alphabet_name="AGATHA"/>
</monogram_object>
<monogram_object index="1">
<monogram_lettering text="789">
<thread color="65535" code="xx" brand="xx" description="xx"/>
</monogram_lettering>
</monogram_object>
</monogram_objects>
The font used must be supported by EWA:
- If you change alphabet_name,
the new font (alphabet) must be valid.
- If you only change other
attributes, the original font must be valid.
Thread colors:
- If the color exists in the
palette, it’s reused.
- If not, the API adds it with
the supplied color, code, brand and description.
Multiple colorways:
- If
the design has more than one, only the appointed colorway (or the current one
if not specified) is changed.