Reverse a List

Hello GC Community,

I'm having a problem that maybe you could help me with, 

I need to reverse a list, in this case point4 represent a list that I need to reverse so I can match the lines in a parellel assemble.

I'm attaching a picture.

Regards

Parents Reply
  • Hi Rafael,

    This one reminded me of a similar issue I had with some curves.

    Maybe you could think of it in another direction.

    The points could be ordered by their X values in your case. This would in effect reverse the list. But it also provides future flexibility where you might place points in a random order but need to re-arrange them in a specific order like X, Y or Z direction.

    Using a similar approach to that Brenden suggested above this could be achieve with an expression node.

    Place an expression node and in the Value field type in:
    from V in Point7 orderby V.X

    The “V” is not important just a variable so it could be anything I believe

    Then just disconnect the wire between the endpoint of Line 5 and connect the expression to this endpoint.

    That should fix it up.

    I have attached a dgn example

    Let me know how you go

    Thanks

    Wayne

    1768.OrderOfPoints.dgn

Children