mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-14 08:05:07 -05:00
Finding a part on the nest server meant scrolling 40k drawings: the library could only match an exact thickness or customer and knew nothing about a drawing's size or holes. The library browser gets a Filter dialog with inclusive ranges, and the query API takes them. The server never parses packages and stays off IO, so the server worker now measures each package beside its nest jobs (bounding sides, net area, closed cutouts inside the outline) and stores the summary keyed by package hash (schema v19). Identical geometry is measured once, an unreadable package is recorded once instead of retried forever, and size or hole limits match only measured drawings. Thickness ranges compare in inches across units and keep the library's rule that a drawing saved without a thickness suits any. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
472 B
C#
21 lines
472 B
C#
namespace OpenNest.Data;
|
|
|
|
/// <summary>Columns a drawing library query may order by (camelCase on the wire).</summary>
|
|
public enum DrawingSortField
|
|
{
|
|
SavedAt,
|
|
Name,
|
|
Customer,
|
|
MaterialName,
|
|
MaterialGrade,
|
|
Thickness,
|
|
CutType,
|
|
Revision,
|
|
|
|
/// <summary>The measured longer side; unmeasured drawings sort as smallest.</summary>
|
|
Length,
|
|
|
|
/// <summary>The measured hole count; unmeasured drawings sort as fewest.</summary>
|
|
Holes,
|
|
}
|