add_extruded_profile
Create prismatic parts by extruding closed 2D polygon points by a depth into a SolidWorks solid, with optional fillets, rotation, draft, and merge/separate-body control.
Instructions
Extrude a closed polygon into a solid: points_mm = [[x,y], ...] in mm.
The polygon (first-plane coordinates, same as add_box) is auto-closed and extruded by depth_mm. Unlocks arbitrary prismatic shapes (brackets, profiles, polygons). corner_radii_mm rounds the corners with real sketch fillets: one radius for all, or one per vertex (0 = sharp); equal radii share one dimension ('radius', else 'r'). rotate_deg turns the profile counterclockwise about about_mm ([x, y], the origin by default) first: draw a crank or a lug straight, then set it at its angle. draft_deg tapers the walls inwards as they rise (negative: outwards), a dimension 'draft' (a moulded boss, a printable taper). merge=False keeps the result a separate body: list_bodies, combine_bodies. Returns mass properties (volume = polygon area * depth; a right-angled corner of radius r loses r^2 (1 - pi/4), a concave one gains it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Extrude | |
| merge | No | ||
| about_mm | No | ||
| depth_mm | Yes | ||
| draft_deg | No | ||
| points_mm | Yes | ||
| rotate_deg | No | ||
| corner_radii_mm | No |