Compare multiple lists based in {A,X,X} path

hello everybody,

currently working in a projet of façade panels, i was wondering how to stablish a numbery system in order to identify the panels with same dimensions and perforations,

so i have a multiples lists with a {A,B,C} path, the data inside those list is the distance between 2 perforations, so i need to compare the lists with the same {A} in order to identify panels with the same features, if all the lists inside {A} are identic, create 1 path (like case 2,3 and 4); if there is 2 variants inside the {A} path, create 2 paths; if all lists have differents lenghts (like case 6) create individuals paths

Panels are already sorted by surface, panel with the same area are inside the {A} path

thank you for your support!

Hi @4.4_DIAZ_Jeffrey ,
could you internalize this data and upload it , so we can test it.

here you are :slight_smile:
Compare multiple lists based in {A,X,X} path.gh (5.1 KB)

not super clear to be honest :slight_smile: I understood you might want to get the different values inside the trimmed {A} data tree?

Compare multiple lists based in {A,X,X} path_Re.gh (10.9 KB)

if this is the case, and you also want separate paths, you can graft the Sort-K output:

i’m sorry i will try to explain it better,

i have many panels with differents dimensions, i want to create a numbery system for my façade, putting the same tag for panels that have the same dimensions and the drilling points at the same distance

currently this is how my façade looks like :

so i already sorted my panel by dimensions and i have 35 list, but even if two panels have the same dimensions the drilling points maybe be different

so for the second step i need to sort the panel by the drilling point distance, putting all panels with the same drilling points in a same list in order to have the same tag

in this image we can see a list containing 9 panels with the same dimensions, however in the group 1 drilling points are separated by 600 and 604 mm, in group 2 drilling points are separated by 602 and 597 mm, finally in group 3 drilling points are separated by 605 and 598 mm

so i need to group those panels in 3 differents list in order to have identically panels in a same list

I hope I have explained better :slight_smile:

here is the GH file with the panels

Compare multiple lists based in {A,X,X} path.gh (40.8 KB)

oh, now it’s much more clear :+1:

are you happy to go lexical on this?

for instance, by calling each panel (on the same tree branch, so same area) by a name like “x_distances # y_distances” you get some “meat” you can use to create set operations

for instance, this part:

creates nicknames for the panels in the like of: x1 - x2 - x3 - ... # y1 - y2 - y3 - ...
which means that panels in the same branch which share the very same perforation pattern should also share the very same nickname

and that makes possible something like:

where for each original branch you get the type of perforations contained, and their amount

you can apply the very same subdivision into “types” to the panel list with something like this:

where, for instance taking into exam the original branch {6} that contained 3 panels, those 3 panels are of different types, so {6;0}, {6,1}, {6,2} branches are generated, and you can see what is what (and how many) on the rightmost panels, which are also used to place text tags:

[edit: forgot a graft, reuploading the file]
Compare multiple lists based in {A,X,X} path_inno.gh (48.3 KB)

text tags now represent nicknames, but of course can become whatever makes you happy (letters, numbers…) the only important thing is that a different nickname corresponds to a different value

1 Like

wow, thank you so much! it works perfect