add_text_on_face
Engrave text into any planar face or emboss it to add labels, version numbers, or part markings with controlled height and depth.
Instructions
Engrave text into ANY planar face, or emboss it with emboss=True (labels, version numbers).
(x, y, z) is the text's lower-left corner on the face; the text runs along the face sketch's horizontal axis: upright along +x on the top (+z) and front (-y) faces, turned on the others (vertical on +/-x, upside down on +y), so put labels on the top or front. height_mm is the character height, depth_mm the engraving depth or embossing height. The position is two dimensions ('x', 'y'); font must be installed (default: SolidWorks' own). Returns text_area_mm2, since letters have no hand calculation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face | Yes | ||
| font | No | ||
| name | No | Text | |
| text | Yes | ||
| x_mm | Yes | ||
| y_mm | Yes | ||
| z_mm | Yes | ||
| emboss | No | ||
| depth_mm | Yes | ||
| height_mm | Yes |