Set Sketch Text
set_sketch_textRewrite sketch text and rebuild the model so debossed lettering updates after dimension or equation changes; pass the same $PRP link or new text.
Instructions
Rewrite the text in a sketch and rebuild, so debossed lettering shows it.
Use it after a change the text should follow: SolidWorks doesn't redraw sketch
text on rebuild, not even a $PRP: link to a dimension an equation changed.
Give the same $PRP:"name" text to re-read the link, or new text. The sketch
is opened, its text rewritten, closed, and the model rebuilt, so a cut made
from it changes too. Needs: a part with that sketch, holding text from
add_sketch_text. Changes: the sketch's text. Returns: the sketch, each
text before and after (links resolved).
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": "set_sketch_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | `sketch_name` and `text`, both required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||