cut_extrude
Cuts the most recent sketch through a SOLIDWORKS body to remove material and reports the removed volume, reversing direction automatically if the first cut removes nothing.
Instructions
Cut the most recent sketch through the body to remove material. Reports the volume removed. If the requested direction removes nothing (for example a sketch lying beside the body), the other direction is used and the result says so. A sketch that already belongs to a feature is not cut again: draw a new sketch first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cut_extrude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | Cut in the opposite direction | |
| unit | No | mm, cm, m, inch or ft | |
| depth | No | Cut depth (total depth for mid_plane; ignored for through_all) | |
| through_all | No | Legacy: same as end_condition='through_all' | |
| end_condition | No | blind = to depth; through_all = through the whole body in one direction; through_all_both = both directions; mid_plane = depth split equally both sides of the sketch | blind |
| both_directions | No | Legacy: with through_all = through_all_both, otherwise mid_plane |