(2021-12-20, 7:51)GeraldĀ Lasser Wrote: I would wish for a possibility to "sort" eventually parts by myself to get a space efficient layout.
Thanks for your input. As everything is generated into an OpenDocument Draw file, one could re-sort as needed afterwards, but this is kind of painful for many parts. I was thinking of the sorting categories width, height, color, LDraw part number, LDraw part description; so there could be an option to define in which order those categories should be applied.
Do you have an idea how to express your sorting wish?
I could even think of a small source code API like this:
Code:
int diff=o1.getColId()-o2.getColId();
if (diff!=0) return diff;
String o1d=o1.getDescription(ctx);
String o2d=o2.getDescription(ctx);
if (o1d!=null && o2d!=null) return o1.getDescription(ctx).compareTo(o2.getDescription(ctx));
return o1.getName().compareTo(o2.getName());