Position text to the Design
The text could be positioned using the “TextAlignment” parameter block.
"TextAlignment": {
"Mode": "Top",
"Alignment": 0,
"DistanceMM": 0,
"xPosMM": 20.0,
"yPosMM": 20.0
}
"Mode"
- “Top” → The text is above the design
- “Bottom” → The text is below the design
- “Left” → The text is on the left side of the design
- “Right” → The text is on the right side of the design
- “Manual” → The text position is defined by “xPosMM” and “yPosMM”
"Alignment"
- “Top” / “Bottom”
- 0 → left side of the design
- 1 → center to the design
- 2 → right side of the design
- “Left”/”Right”
- 0 → bottom of the design
- 1 → center of the design
- 2 → top if the design
“DistanceMM”
Distance to the design
"xPosMM" / "yPosMM"
Used in combination the “Mode” → “Manual” to set the position of the text.