Quarter-inch etching is hard for the shop to read, and most of the crew
would rather have half-inch text. Find Best Location now tries half-inch,
then three-eighths, then quarter-inch text (12, 9, 6 mm) and keeps the
largest that fits, so big parts get readable labels and small parts still
get one. Only when even the quarter-inch label fits nowhere is a box
placed for hand adjustment, at that smallest size. Boxes already placed
keep their size until found again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dash and letter after the part number (4980A01PT09-A) reads like a
revision, and many part numbers already end that way, so the shop could
not tell where the number stops and the bend group starts. Each group
letter is now etched at 0.6 of the text height inside its own circle the
text height across, clear of the name: 1234 (A)(B). One shape for every
group keeps the shape itself from seeming to mean something.
The circles take more room than "-AB", so the default label box grows
from seven characters to eight to keep a four-digit number and two groups
at full height. The gusset finder test is pinned to the seven-character
size it was written for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LabelBoxFinder scored a maximal rectangle by how many label heights fit across
it, so a long, thin strip (the gap between a hole and a slanted edge) beat a
roomier pocket, and centering put the box at the strip's narrowest point.
Each orientation now finds the widest margin the label can have on every side
beyond the clearance, by bisecting on the margin and asking only for
rectangles at least that thick, and centers the box in the rectangle that
gives it. A turn off the axes must give half again the margin plus half the
label height before it replaces horizontal or vertical text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add LabelBoxFinder (Core): erodes the cut material by an etch clearance,
cuts bands out around bend lines and breakoff scrap, then centers a
label-sized box in the roomiest empty rectangle over a few orientations
(axes, bend and edge directions). Placement is stored on
Drawing.LabelBox in the source frame, persisted in the .nest file and
carried through BuildDrawing/ApplyEdit; it never affects the program.
The CAD Converter gets a Label Box... button that finds the best spot,
draws it as a dashed rectangle, lets the user drag and resize it, and
warns when nothing fits. Etching the text is a later step.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>