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).
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. |