Setting mark parameters of different families

Hi all,

I’ve made this script that collects all the families in my project and assign every mark of said family a different letter (a,b,c,…). My current script works but it is quite hectic as im copy pasting the different nodes times the amount of families in my project. fyi the different types in the family need the same letter.

is there a more efficient way of doing this?


GroupByKey?

Key could be the category for example.

1 Like

i’ve thought of that. But i got no clue what to do after the grouping by key.

This might need a little more research as it seems currently out of my league :sweat_smile:

Group FamilyType by Family and then generate your mark sequence for the number of families. Then you assign the mark to the group (sublist) of FamilyTypes.

2 Likes

1 Like

Thanks @Nick_Boyts @bvs1982

This is defenitly way more simple then my original script. works like a charm!

This might be a long shot but i just made a similar script where i sort rebar by shapes and Ø and assign them a mark.

Is there a node / method that recognises if the rebar has the same shape, Ø and length and assigns the same mark to the rebar?

i tried “if” node and “==” but i dont seem to connect the dots all to well

This would either be a number of groupings in series (for each value) or you can join all 3 values as a string and use that as an “identifier”. But it’s the same idea as above.