sketch_trim
Trim a sketch curve back to neighboring intersections at a chosen point. Trim one curve per call and use the returned refs, since the original ref becomes stale after replacement.
Instructions
Trim at the segment nearest point (cut back to the neighbouring intersections).
ONE curve per call: trimming replaces the curve and Fusion cannot undo it inside a
batch, so the old ref becomes stale — use the refs in the result for the next trim.
point farther than 5 mm from the curve fails with INVALID_PARAMS.
Returns {"created": [refs of the remaining pieces], "deleted": [the original ref, if it was replaced], "status", "profiles"}.
Example: sketch_trim(sketch=, curve=, point=[10, 0]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curve | Yes | Curve to trim | |
| point | Yes | Near the segment to remove (≤ 5 mm) | |
| sketch | Yes | Sketch ref (from sketch_create) | |
| return_profiles | No | Add the current profiles to the result (false = faster) |