Extract every nth to nth number in a list?

hi all, i have a list of points or lines that i want to extract out. say i have the picture below, is it possible to do?

Hi, @Imran_Hakim

how does your data structure in gh look like ?

Do you just select points and lines randomly in Rhino and you need to sort them first before you extract a sequence or ist the data structure in gh already sorted ?

hi flokart, what i have is a list of points that will be sorted. i then want to use the data get the data from the sorted list

Subtraction A- B

you are a legend, thanks a lot!

i do have one more question, what if i wanted to get the list in this way?

thanks again!!!

hi eef, so sorry, i just tried out your solution but it seems its not working, maybe you could try to debug?

Please extract that part out of your gh file.
Use internalise data to save your data in the file
Then upload here.

My guess it, is something with the tree structure. but we have to see your file to see whats going on.

Regards, Eef

Every Nth.gh (18.7 KB)
hi eef, please see the attached.

When working with lists it is important to see how these lists are positioned in the data tree.

  • all in 1 list
  • in seperate branches
  • or on different levels.
    It is like a christmas tree, not all candles are on the same branch :wink:

legend, thanks a lot!

No GH file? Deserves NO REPLY :bangbang:

Amazing how often it happens… :roll_eyes: