sketch_project
Projects model geometry into a sketch as reference curves to dimension, constrain, or close profiles. Supports projection, linked copies, intersections, and body sections.
Instructions
Bring model geometry into the sketch as reference curves (to dimension or constrain against, or to close profiles). All or nothing.
Modes: project (projection onto the sketch plane; a body projects all its edges),
include (linked copy of curves), intersect (intersection of the entities with the
sketch plane), cut_edges (section of bodies by the sketch plane).
Returns {"created": {: [refs]}, "status", "profiles"}.
Example: sketch_project(sketch=, entities=[]) -> the face outline as reference curves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | project | include (linked copy) | intersect (with the sketch plane) | cut_edges (body section) | project |
| sketch | Yes | Sketch ref (from sketch_create) | |
| entities | Yes | Edges, faces, vertices, bodies, other sketches' curves, origin:* | |
| return_profiles | No | Add the current profiles to the result (false = faster) |