Translate 1234567 to 1.23.456.7


#1

Hey Guys, im trying to get this to work for me… I just uploaded a picture of this that should give you an idea of what im trying to achive, the script is still very simple, so dident bother to upload it :slight_smile:

Just for summing up, im trying to get a parameter from a family, and in this case it is a number, i then want to put in som . at specific places between the numbers.

Thx in advantage :slight_smile:


#2

String from Object + String.Insert should do it
See other examples here:
http://dynamoprimer.com/en/04_The-Building-Blocks-of-Programs/4-4_strings.html


#3

image


#4

See also the Dynamo Dictionary: http://dictionary.dynamobim.com/#/Core/String
String-join


#5

@Phanse17 You could also do it in a code block


#6

string formatting might be a more functional way to do the above:

image


#7

Thx, for the help everybody… Many good inputs… Thx a ton :slight_smile: