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
Hi Rafael
Does this help.
Brenden Roche
Applications Engineer
Bentley Systems, Manchester UK
Hello Brenden,
Thank you for your help!!!
Unfortunately it sends me an error when I used the statement "point4.Reverse", "point4" is a list of points.
I'm attaching a picture
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
Hi Wayne,
very nice solution.
Do you know some help-manual where we can find tricks like these?
Ingo
Hi Ingo,
I am asked the same question here in our office. Volker and the community are a very good starting point. I have learnt so much just asking questions here. The other great resource are the SIGs. So much info there every month!
However I am just about to release some videos to our team on GC tips so I will package them up and get them online for everyone to enjoy. I will start a thread in the forum so keep an eye out for it. I am no expert but you might find it useful.