extrude_sketch
Creates a solid feature by extruding an existing named sketch in the current SolidWorks part to a set depth or up to a face, merging it with the body while preserving sketch dimensions and relations.
Instructions
Extrude an existing sketch of the current part by name, e.g. one a person drew.
depth_mm along the sketch's normal (reverse=True: the other way), merged with the body. Or up_to='next': up to the next face of the part, ending on its shape (a post into a curved wall) and following it when it changes; or up_to='@x,y,z': up to the face through that point, also where 'next' fails (a side of the profile on a face: the refusal names a point ahead). The sketch keeps its own dimensions and relations, so the person's design stays in charge; read_sketch shows it first. Returns mass properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Extrude | |
| up_to | No | ||
| sketch | Yes | ||
| reverse | No | ||
| depth_mm | No |