Add Sketch Geometry
add_sketch_geometryAdd lines, circles, arcs, or points to a sketch and get their indices for use in constraints.
Instructions
Append geometric primitives to a sketch.
items is a list of dicts:
{type: 'line', start: [x,y], end: [x,y], construction?: bool}
{type: 'circle', center: [x,y], radius: float}
{type: 'arc', center: [x,y], radius, start_angle, end_angle} (radians)
{type: 'point', pos: [x,y]} Returns {indices: [...]} — Sketcher-assigned indices for use in constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| sketch | Yes |