good morning everyone
At the end of the race always messed up.
Is there any macro that you order me the tools by the name found?
greetings and thanks
Solved! Go to Solution.
Solved by 5axes. Go to Solution.
Can you do 2 different sorting options? One by tool name and the other by tool diameter?
I tried
FOREACH tl IN (sort(folder('tool'),'name')) { FOREACH tl IN (sort(folder('tool'),'diameter')) { ORDERSESSION Tool $tl.name FIRST }
but didn't work
Yes but in two times.
// First sorting operation on the second option (name) FOREACH tl IN (sort(folder('tool'),'name')) { ORDERSESSION Tool $tl.name FIRST } // Second sorting operation on the main criteria ( diameter) FOREACH tl IN (sort(folder('tool'),'diameter')) { ORDERSESSION Tool $tl.name FIRST }
or perhaps something like :
FOREACH tl IN (sort(sort(folder('tool'),'name'),'diameter')) { ORDERSESSION Tool $tl.name FIRST }
but not tested
tested
FOREACH tl IN reverse(sort(sort(folder('tool'),'name'),'diameter')) { ORDERSESSION Tool $tl.name FIRST }
using reverse to get a sorting result with tool from the minimal radius to the maximal and with an alphabetic order.