sketch_create
Create a 2D sketch on an origin plane, construction plane, or planar face in Fusion 360, returning its transform so sketch coordinates map correctly to model space.
Instructions
Create a 2D sketch on an origin plane, a construction plane or a planar face.
All sketch tools work in SKETCH SPACE, mm: [x, y] on the sketch plane. Fusion picks
the sketch axes; the result transform = {origin, x_axis, y_axis, normal} (model mm
and unit vectors) maps them: model = origin + xx_axis + yy_axis.
Pitfall: on origin:XZ the sketch Y axis is model -Z (so a point drawn at y = 10 is
at model z = -10) — always read transform, or give points as
{"model": [x, y, z]} to sketch_draw. On origin:XY sketch x/y = model x/y.
A planar face gives a clean sketch unless project_edges=true. A non-planar face
fails with INVALID_PARAMS (details.reason = "face_not_planar").
Returns {"sketch": {ref}, "name", "plane", "component", "transform"}.
Example: sketch_create(plane="origin:XY", name="Base") then sketch_draw(sketch=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sketch name | |
| plane | Yes | origin:XY | origin:XZ | origin:YZ, a construction plane ref or a planar face ref | |
| component | No | Component ref; default: root | |
| project_edges | No | On a face: project its edges into the sketch |