sweep
Creates a tube, handle, rail, or wire form by moving a closed sketch profile along a joined path sketch, supporting join, cut, intersect, and new-body operations.
Instructions
Sweep a sketch's closed profile along a path — a tube, handle, rail or wire form. Not sweep_rotation, which swings assembly components to check collisions.
The path is a second sketch whose lines and arcs join end to end (draw_line, draw_arc), on a plane across the profile's — e.g. the path on XZ, the profile on XY where the path starts. Arcs must join the lines tangentially, or the profile kinks and the sweep fails. Returns the feature name and the volume / topology change.
Args: path_sketch: Sketch number holding the path. sketch_index: Sketch number of the profile (0 = latest sketch). operation: "join" (add), "cut", "intersect" or "new" (a separate body). orientation: "normal" (the profile stays square to the path) or "parallel" (it keeps its original direction). taper: Draft angle in degrees; positive grows the profile along the path. twist: Rotation of the profile over the whole path, in degrees.
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": {
"path_sketch": "<path_sketch>"
},
"name": "sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taper | No | ||
| twist | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| operation | No | join | |
| orientation | No | normal | |
| path_sketch | Yes | ||
| sketch_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |