String from list with different separators? (for PDF naming)

archi-lab
dynamo

#1

Hi people.
I’m very new in Dynamo so I hope you all can help me with my problem.
I’m working on Archi-lab’s naming function and i got everything to work but I would really like to have 2 different separators (if possible)?

Below you can see an image of how it looks now.


#2

What do you mean by “2 different” separators? Separator 1 when this, and Seperatur 2 when that? :slight_smile:


#3

I have 3 lists that are now put together with a “Dash”.
List1 - List2 - List3
image

What i want for the last list is a Dot.
List 1 - List2, List 3


#4

Can you share your graph (.dyn file) or a sample file?


#5

Like this ?


#7

Yes i want it to look just like that, i just dont know how to do it so everything else still work.


#9

How about this as @CVest proposes? The outputs of your “Get Built in Parameter”,“Get Built in Parameter” and “GetParameterValueByName” is my IN1, IN2, IN3

The build in Function “join” function in python used in the “String From List” cannot unfortunately handle multiple separators.


#10

Just use the code block node as and type in what I suggest or what Jonathan suggest :slight_smile:


#11

This is properly a very stupid question, but how do i make the inputs “IN1, IN2, IN3” in the code block?


#12

That is just simple text without quotations


#13

Just write them in the code block and they will appear as inputs.


#14

Thank you so much, it really was that easy!


#15

Thank you so much for the fast answer, it was very helpful!


#16

Please mark as solution then :slight_smile: