How to sort rebar

Hi All,

I’m stuck on something that might be not that hard to solve.
I’m trying to create a sorted list with rebar. Each level is an element (in my case a concrete beam) which contains rebar. With the filterbyboolmask only the last element is used for sorting out my rebar.
Can you point me in the right direction?

could this be it?

Hi @d.kelfkens ,

By what exactly do you want to filter your list? Are you only after the Rebar Elements?

Hi @Daan,

Yes I’m only after the Rebar elements sorted per beam.
I’m working on an automated Rebar schedule export.

Then yes, List.GroupByKey would be best here. I recommend using the element ID rather than the element as that will be a lot more robust.

1 Like