sw_generate_part
Generates a parametric part (L-bracket, flange, enclosure, or motor mount) in a new SolidWorks document from a kind and optional parameters with sensible defaults.
Instructions
A typical part in a new document from a few parameters (all have sensible defaults).
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": {
"kind": "<kind>"
},
"name": "sw_generate_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| params | No | l_bracket: width, height, depth, thickness, hole ('M4'), fillet. flange: outer_diameter, inner_diameter, thickness, bolt_circle, bolts, hole. enclosure: length, width, height (inner), wall, corner_radius, standoffs [[x, z], ...], standoff_height, screw. motor_mount: plate_diameter, thickness, bolt_spacing [16, 19], screw, center_hole. |