Add Sketch Text
add_sketch_textAdds text to an open sketch at a start point or centered on a model point so you can emboss or deboss lettering, then extrude or cut it.
Instructions
Write text in the open sketch, at a point or centred on one, to deboss or emboss it.
Use it for lettering, then cut (create_cut_extrude) or extrude the sketch.
center_at (a model point in mm) puts the text's middle there; otherwise it
starts at x, y. $PRP:"name" in the text shows a custom property;
one holding a dimension's name ("D1@Sketch3", set with set_custom_property)
makes the text follow that dimension. To read from a face's own side, such as
an underside, open the sketch on that face (create_sketch face_point).
Needs: an open sketch (create_sketch). Changes: adds text. Returns: the
text's id, the text as SolidWorks shows it (links resolved) and its
height.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_data": "<input_data>"
},
"name": "add_sketch_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The text. `text` is required; `x`, `y` (mm), `height` (3.5 mm) and `center_at` have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||