ZSK Web API

ZSK Web API

TextAlignment to Design

POST

TextAlignment defines the position of the text to the design.

It is used only if is a conbination of a design and text.

  • Mode
    • Position of the text to the design:
      • Top
      • Bottom
      • Left
      • Right
      • Manual
        • The text position is defined by XPosMM and YPosMM
  • Alignment
    • Mode = Top/Bottom:
      • 0 = Left
      • 1 = Middle
      • 2 = Right
    • Mode = Left/Right
      • 0 = Top
      • 1 = Middle
      • 2 = Bottom
  • DistanceMM
    • Distance in mm to the design
  • XPosMM
    • horizontal position of the text
  • YPosMM
    • vertical position of the text

 

 Top Left

 Top Center

 Top Right

 

 Left Top

 

 

 

 Right Top

 Left Center

 

 Manual

 

 Right Center

 Left Bottom

 

 

 

 Right Bottom

 

 Bottom Left

 Bottom Center

 Bottom Right

 


    Parameters

    Parameter Type Description Required
    Mode string Top, Bottom, Left, Right Yes
    Alignment int 0 = left/top, 1 middle, 2 = right/bottom Yes
    DistanceMM int distance to the design in mm Yes
    xPosMM double horizontal text position in the embroidery area No
    yPosMM double vertical text position in the embroidery area No

    Example

      "TextAlignment": {
        "Mode": "Top",
        "Alignment": 0,
        "DistanceMM": 0,
        "xPosMM": 0.0,
        "yPosMM": 0.0
      }