Create Extrusion
create_extrusionExtrudes a closed sketch into a solid boss on the active part after exiting the sketch; supports blind, mid-plane, through-all, up-to-next, thin-wall, and draft options.
Instructions
Extrude the sketch you just closed into a solid boss, added to the active part.
Use it after exit_sketch; to remove material, use create_cut_extrude. It
extrudes the sketch sketch_name names, or the one exit_sketch closed last;
a name that isn't in the feature tree fails before anything is built. End
conditions: Blind (default), MidPlane, ThroughAll, UpToNext; both_directions
means MidPlane. With thin_feature and thin_thickness it makes a wall from the
sketch's outline, and an open chain works (a bent plate from its centreline).
Needs: an open part and a closed profile (open is fine when thin). Changes:
adds a Boss-Extrude feature. Returns: extrusion (name, sketch when one
was named, depth, the end_condition SolidWorks used, both_directions,
and thin when thin) and
measured_change (volume, bounding box and solid-body count before and after;
left out when the model can't be read).
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": {
"input_data": "<input_data>"
},
"name": "create_extrusion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The extrusion. `depth` (mm) is required; `sketch_name`, `end_condition`, `both_directions`, `reverse_direction`, `draft_angle`, `thin_feature`/`thin_thickness` and `merge_result` have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||