sketch_get
Retrieves sketch geometry, constraints, dimensions, profiles, and constraint status to inspect a sketch or find refs for edits.
Instructions
Full state of a sketch, coordinates in sketch-space mm.
Sections: points [{ref, xy, fixed, reference, fully_constrained}], curves
[{ref, type: line|arc|circle|ellipse|elliptical_arc|fitted_spline|fixed_spline|conic,
construction, fixed, reference (projected), fully_constrained, length_mm, start, end,
geometry (line {start, end}; circle {center, radius}; arc {center, radius, start, end,
start_angle, sweep}; ...)}], constraints [{ref, type, entities}], dimensions
[{ref, type, entities, value (mm|deg), unit, expression, parameter, driving}],
texts, profiles (as sketch_profiles). Each section is an object
{items: [≤ limit entries as above], total, truncated} — truncated: true when cut.
Returns {"sketch", the requested sections, "transform" (see sketch_create), "status": {fully_constrained, under_constrained_count, under_constrained: [≤ 50 refs]}}.
Example: sketch_get(sketch=, include=["dimensions"]) -> find a dimension ref for sketch_dimension_set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items per section | |
| sketch | Yes | Sketch ref (from sketch_create) | |
| include | No | Sections; default: all |