Using two separator in a file name - Dynamo

Hi everyone, i am trying to develop a dwg export script with a custom naming, here the “current revision” part must be seperated with underscore ”_”, but i can’t figure out how it must be done, any help would be appreciated.

P.S.: i am new to this stuff so still trying to learn.:upside_down_face:

I like to use a Code Block in such cases

For example;

C = List.GetItemAtIndex(lst, 0);
M = List.GetItemAtIndex(lst, 1);
F = List.GetItemAtIndex(lst, 2);

C+"-"+M+"_"+F;

PS
You don’t need Element.GetParameterValueByName for each Parameter.

3 Likes

Thanks for your reply. Does this work for multiple views? Cause i did it and it gives me 1 outcome for one view, i need it for the all viewsets

Yes, but you have add Levels and Lacing
into the mix.

2 Likes

It worked, thank you so much