Sweep
sweepSweeps closed profiles of a sketch along a path: the chain of connected curves through path_entity of the sketch path_sketch_id (lines, arcs and splines joined end to end). Draw the profile on a plane across the path's start. Optionally twisted (degrees over the whole path).
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": {
"sketch_id": "<sketch_id>",
"path_sketch_id": "<path_sketch_id>",
"path_entity": "<path_entity>"
},
"name": "sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| twist | No | Degrees (default 0). | |
| bodies | No | Only these bodies take part in join, cut or intersect; every other body is left as it is. Leave out to act on every body the new solid meets. Use it whenever bodies of a design touch or nest - holes in a board that sits on standoffs, a slot in a lid but not in the base under it. | |
| profiles | No | Profile indices from add_geometry / get_sketch (closed regions of the sketch): [0, 2], one index, or "all". | |
| operation | No | new: a new body; join: add to the body it touches; cut: remove material; intersect: keep the overlap. | |
| sketch_id | Yes | ||
| path_entity | Yes | An entity id of the path, from add_geometry. | |
| path_sketch_id | Yes |