drawing_legibility
Detect unreadable drawing layouts by flagging overlapping labels, dimension lines crossing unrelated views, and graphics past the sheet border on placed geometry.
Instructions
Legibility gate for a drawing page: on the ACTUAL placed graphics, flag the ways the layout becomes unreadable — overlapping dimension labels, a dimension line crossing a view it does not reference, or anything past the sheet border.
min_gap (mm) is the breathing room required between two labels. Returns {ok,
violations, labels, segments, views}; each violation has a code
(overlap/crosses_view/out_of_border) and a human reason. ok=True means the
placed dimensions read cleanly on the sheet. Inspection balloons count as placed
graphics too — a numbered circle sitting on a neighbour or off the sheet is
flagged like any other label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| min_gap | No |