feature_sweep
Sweeps a constant 2D section along a curve or edge path to create solid, cut, or surface geometry such as bent pipes, tubes, rails, and grooves.
Instructions
Sweep a constant section along a trajectory (Creo's Sweep tool: bent pipes and tubes, rails, handles, grooves along a path). trajectory: datum curve features (trajectory_type="curve_features", default; make them with feature_datum_curve; several features = one path in order), or curve / edge refs. entities: the 2D section; its origin (0,0) is the trajectory's start point. Creo picks which end is the start, so draw sections centred on the path (pipe: two circles at 0,0) or give x_dir (model direction of the section's X axis, e.g. [0,0,1]) and optionally y_dir (the side of +Y); the result's "sketches" location shows where Creo put the section. Without x_dir the entities are in Creo's sketch frame. kind: solid, cut (removes material along the path) or surface (capped=true closes its ends). thin: wall thickness for a thin sweep of an open or closed section (thin_side one/two/both). pivot: a datum axis (or plane): the section stays normal to the path's projection square to it. Along a helix about that axis (feature_datum_curve_equation) the section plane holds the axis: Creo's Helical Sweep, e.g. a thread cut with its profile drawn in the axial plane. Volume check: section area x path length (constant section).
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": {
"trajectory": "<trajectory>",
"entities": "<entities>"
},
"name": "feature_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| kind | No | solid | |
| name | No | ||
| refs | No | ||
| thin | No | ||
| pivot | No | ||
| x_dir | No | ||
| y_dir | No | ||
| capped | No | ||
| entities | Yes | ||
| thin_side | No | one | |
| trajectory | Yes | ||
| trajectory_type | No | curve_features |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||