It’s been a while!
I’ve got a challenge / problem. i’ve created a script that assings number for each family placed in my project to identify them. my amount of families has grown and so have my types per family.
what i’ve been trying to do is assign each family a letter and each type of the family a number after the letter. small example. family 1 = A / Family Type 1 = A1 / Family Type 2 = A2
I kinda guess what you problems was from your images.
Node to Code can be helpful to get the right code for a Code Block ‘line’.
that’s exactly what im looking for. do you know if theres a way to just get the letter without number if its a family with one type?
Yes (there are multiple ways)
I don’t have access to Dynamo anymore.
You can do it with an ‘If statement’ for example.
If your list count is only one (1) replace the
1 with a “” if not use the list.
Hope that makes sense.
lst == 1 ? “” : lst ;
NB
I didn’t take List Levels into account
above code. So you might need to fix that.
lst being the list with your Family Types.
Something like that(?).
i think this will do the trick! thanks a lot.
sometimes the answer is so obvious to me i cant find it 
That i was these forums are for
.
Just in case
.
Alternative
DynamoSanbox FTW
.
1 Like