inspection_plan
Build a ballooned inspection plan from a drawing page: dimensions, GD&T frames, and notes mapped to measurement methods by tolerance ratio, flagging features that cannot be inspected as drawn.
Instructions
The characteristic list for a drawing page as data: every dimension, feature control frame, and feature note, ballooned, with nominal, limits, and a suggested measurement method per row.
The method follows the tolerance rather than a guess: the gauge-maker's ratio:1
rule (default 10:1 — the instrument must resolve a tenth of the tolerance band)
walked down a per-family instrument ladder, so a loose feature isn't sent to the
CMM and a tight bore isn't signed off with a caliper. A bore takes the pin/bore
gauge ladder (a micrometer can't reach inside one); a GD&T control referencing a
datum frame is CMM work; a datum-free form control is surface-plate work. The
required resolution is exact arithmetic, the instrument mapping is shop
convention — hence fidelity='correlation'.
Returns {ok, characteristics, count, by_method, unmeasurable, retired,
next_balloon, fidelity, band_pct, basis}. ok=False means a characteristic cannot
be inspected as drawn — an untoleranced size the inspector has no limits to
accept or reject against (code no_tolerance), or a band finer than any instrument
on its ladder (code no_instrument) — with unmeasurable naming which and why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| ratio | No |