Convert list into a single text line

Hello all,

I’m wondering if there is a way in Dynamo to convert a list into a single string/text, like the image below.

The goal is to use it as an output in Dynamo Player and copy and paste this sequence of IDs in “Select by ID” command.

Have a look here. Reply #4.

Also, maybe the Select.ByElementId node (archilab) might be worth looking into?

3 Likes

Easy with a teeny bit of Python

j = “”
for i in IN[0]:
i = str(i)
j += i + “;”

OUT = j[:-1]

2 Likes

This node would be my personal method: Dynamo Dictionary (dynamobim.com)

1 Like

SelectionSet.Elements and SelectionSet.byElements helped me out to do something similar, don’t know the Package but its there

2 Likes

Thank you both, @bvs1982 and @Alien. The question @bvs1982 linked solved for me. And I don’t know Python yet, but I want to learn it as soon as possible.

Hello,
and thank you for the feedback,
package clockwork

Cordially
christian.stan

1 Like