revolve
Create revolved solid geometry in Creo by sweeping a sketched profile around a centerline axis, adding material or cutting at any angle up to 360 degrees.
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.
Sketched revolve, adds material or cuts (cut=true). The sketch needs exactly one centerline 'CL ...' as the axis, and the profile on one side of it. angle in degrees (default 360); symmetric=true splits the angle across the sketch plane. Example (cylinder r20 h40 around Y on FRONT): 'CL 0 0 0 1; M 0 0; L 20 0; L 20 40; L 0 40; Z'. Sketch path, commands separated by ';'. Recommended: coords=model, then every point is 'x y z' in model coordinates (mm) and is projected onto the sketch plane, so it works the same on any plane. Commands (p = point): 'M p' start a loop; 'L p' line to; 'A3 p m' arc to p passing through m; 'A p c ccw|cw' arc to p around centre c; 'Z' close the loop; 'C c r' circle; 'CL p q' centerline (revolve axis). Example coords=model on FRONT: 'M -50 -25 0; L 50 -25 0; L 50 25 0; L -50 25 0; Z'. Default coords=sketch (1.0): points are 'x y' in the sketch frame (on FRONT = model X, Y; on other planes see sec_location in the result). Solid features need closed loops; open loops and a revolve without exactly one CL are rejected before Creo is called.
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>",
"plane": "<plane>",
"sketch": "<sketch>"
},
"name": "revolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | ||
| name | Yes | Part name without .prt | |
| angle | No | ||
| plane | Yes | Datum name (FRONT, TOP, RIGHT, DTM1...) or an id from find_geometry/model_info: surface:N, edge:N, axis:N | |
| coords | No | Point format of sketch: model = 'x y z' model coordinates (recommended) | |
| sketch | Yes | ||
| symmetric | No | ||
| orient_ref | No | Datum name (FRONT, TOP, RIGHT, DTM1...) or an id from find_geometry/model_info: surface:N, edge:N, axis:N | |
| feature_name | No | Optional feature name |