feature_extrude
Extrude a sketch on a datum plane or planar face into a solid, cut, or surface with configurable direction, depth, and thin-wall options.
Instructions
Extrude a sketch drawn on plane (a datum plane or planar face) into a solid, cut or surface.
frame="model" (recommended): entity points are 3D MODEL coordinates lying in the sketch plane
(circle [x,y,z,r], line/rect [x1,y1,z1,x2,y2,z2], polygon/polyline/spline [[x,y,z],...],
arc3 [9 numbers], slot [p1, p2, r], ellipse [x,y,z,rx,ry], point [x,y,z]).
frame="sketch": 2D coordinates in Creo's sketch frame. On FRONT x->X, y->Y; on RIGHT (TOP up)
x->-Z, y->Y; on TOP (RIGHT right) x->X, y->-Z.
Direction: give direction="+Y" etc. (recommended, model axis the feature grows along; the bridge
checks and flips if needed). Otherwise material goes to the NEGATIVE side of the plane's normal
(FRONT -> -Z, RIGHT -> -X, TOP -> -Y); flip=true for the positive side; depth_type="symmetric" for both.
entities (sketch frame):
{"circle":[cx,cy,r]}, {"ellipse":[cx,cy,rx,ry]} -> solid, cut or surface
{"line":[x1,y1,x2,y2]}, {"rect":[x1,y1,x2,y2]}, {"polygon":[[x,y],...]}, {"polyline":[[x,y],...]},
{"arc":[cx,cy,r,start_deg,end_deg]}, {"arc3":[x1,y1,xm,ym,x2,y2]}, {"spline":[[x,y],...]},
{"slot":[x1,y1,x2,y2,r]}, {"regular_polygon":[cx,cy,r,n,rot_deg]}, {"point":[x,y]} -> surface only.
Any closed profile works for solid/cut (lines, arcs, splines, mixed) once the C sketch solver is
enabled (sketch_solver_enable; otherwise only circles/ellipses close for solids). Several closed
loops = a profile with holes. Open profiles: surfaces, or thin solids with thin=wall thickness
(thin_side one/two/both). Sketch references are the datum planes perpendicular to the sketch
plane (like Creo's sketcher); add more with refs=[...] (needed on an angled datum plane, e.g. the
datum axis it was made through).
orient_ref is a plane perpendicular to plane that faces orient in the sketch.
References: a name (datum plane/axis/csys/point or feature name, e.g. "TOP"), a geometry id from
geometry_list, or {"feature": name|id, "type": "surface|edge|axis|...", "index": n}.
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": {
"plane": "<plane>",
"entities": "<entities>"
},
"name": "feature_extrude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| flip | No | ||
| kind | No | solid | |
| name | No | ||
| refs | No | ||
| thin | No | ||
| depth | No | ||
| frame | No | sketch | |
| plane | Yes | ||
| capped | No | ||
| orient | No | RIGHT | |
| entities | Yes | ||
| direction | No | ||
| thin_side | No | one | |
| depth_type | No | blind | |
| orient_ref | No | RIGHT | |
| to_reference | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||