Select specific number of elements at a time

Hello,

I am looking for a node or script to make you able to select “or collect” specific number of elements at a time (five or six elements for example) and place them in a sub-list.

I was able to collect elements per room as shown in the workflow below but in an open office scenario this way is not helpful.

any help would be appreciated
Thanks!

Do you mean “select in Revit” or chop your list into sublists of a specific length?

chop the list into specific sublist length would be ideal

I think I got it. thank you @Nick_Boyts