api/editDesign

Action:

Obtain a single design file by modifying the properties of lettering objects and monogram objects inside an existing design. Returns the actual design data in .EMB format, and/or other supported formats.

Also, optionally generate a transparent TrueView™ image as api/editDesignTrueview function. Also, obtain information about the produced design, such as height, width, number of stitches, etc, as the api/designInfo function.

Post Parameters:

  • appId: Application id of Wilcom API Develop Portal account.
  • appKey: Application key of Wilcom API Develop Portal account.
  • requestXml: an XML string containing the full specification of the components of design:
<xml>
  <recipe>
    <design   ... />			//design
    <output … />			//ouput
  </recipe>
  <files   … />				//files
</xml>

Return Values:

On success, an XML string containing the generated Trueview:

<xml>
  <files>
    <file ... />			// resulting trueview file
  </files>
  <design_info ... /> 			// estimated design information
</xml>

Remarks:

The method will create a design based on an existing design with modified properties of lettering object inside. The existing design is appointed by design component and the design file content is in files part.

The properties of lettering object are in lettering_objects component inside design.

The properties of monogram object are in monogram_objects component inside design.

It will then produce an embroidery design data file that will be returned in files part of the return value, named according to the design_file parameter of the output component of the recipe.

It will then optionally create a transparent bitmap of the produced design that will be returned in files part of the return value, named according to the trueview_file parameter of the output component of the recipe. It will then create the design information about the produced design that will be returned in design_info part of the return value.