List string-concat with constant string fail

Hi everyone,

I’m working on a Dynamo script in Revit that extracts numeric parameters from a BIM object, converts them into strings, and concatenates them with other characters to create a structured text value.

How the script should work:
For each equipment instance, it should:

  • Extract numerical parameters: Length, Diameter, Height
  • Convert these numbers into text format
  • Concatenate them with specific characters to form a structured string
    Example:
    Length = 1000, Diameter = 50, Height = 3000
    Output format: “BDD 1000/Ø50/3000”
    The problem:
    The script works perfectly for a single equipment instance.
    However, when I try to apply it to an entire family of equipment instances, it mixes up the data instead of keeping the right values for each instance.
    The issue seems to come from String.Concat, which does not correctly process lists of multiple elements. Instead of producing a list of properly structured strings, it merges values incorrectly.
    What I need help with:
    How to properly map the data so that each instance gets its own correctly formatted string?
    Do I need to use List.Map or another function to ensure each set of parameters is processed individually?
    How can I make sure the concatenation works for each instance separately, rather than merging all values into one incorrect output?
    Any help would be greatly appreciated!

Thanks in advance!

Try this:
string_concat_behaviour.dyn (22.2 KB)

To add.

try with code block…

String.Concat works on lists of strings. See example below