sweep
Creates constant-section geometry along a sketch curve or joined edges in Creo, and optionally removes material to form cut features.
Instructions
Creates/edits geometry in the running Creo 5 through the DreamFeatureApp plugin. There is no mirror tool: build symmetric shapes with symmetric extrudes, revolves or patterns. Units are mm and degrees. Parts are addressed by name (lowercase, no .prt). Model axes: FRONT is the XY plane (normal +Z), TOP is XZ (normal +Y), RIGHT is YZ (normal +X). Each feature call either ends with an active feature or is rolled back. Nothing is saved unless model_save is called. Check results with model_info (volume, bound_box) and preview_image.
Constant-section sweep along a trajectory: the feature_name of a sketch_curve, or a list of edge:N joined end to end. The section sketch is drawn in the frame at the trajectory start, origin = start point (e.g. 'C 0 0 5' for a 10 mm pipe). cut=true removes material. Uses the same sketch commands as extrude.
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": {
"name": "<name>",
"trajectory": "<trajectory>",
"sketch": "<sketch>"
},
"name": "sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | ||
| name | Yes | Part name without .prt | |
| coords | No | Point format of sketch: model = 'x y z' model coordinates (recommended) | |
| sketch | Yes | ||
| trajectory | Yes | ||
| feature_name | No | Optional feature name |