satri
Subscriber

For example in a sample geometry i know that 127 is the limit of the edge number so i can terminate the loop there

i=7
 
while(i<127):
    # Create Named Selection Group
    primarySelection = EdgeSelection.Create([GetRootPart().Bodies[0].Edges[i],
        GetRootPart().Bodies[0].Edges[i+1]])
    secondarySelection = Selection.Empty()
    result = NamedSelection.Create(primarySelection, secondarySelection)
    # EndBlock
    i=i+2
 
This was slightly simple for me. but when i scale it more say i go to 1000 i may not know what is the limiting number