# Concatenate not working

**URL:** <https://forum.dynamobim.com/t/concatenate-not-working/46989>\
**Category:** Revit\
**Created:** [February 19, 2020, 12:09am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989 "2020-02-19T00:09:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evan.Pond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/evan.pond/32/98460_2.png) [@Evan.Pond](https://forum.dynamobim.com/u/Evan.Pond)\
**Post date:** [February 19, 2020, 12:09am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/1 "2020-02-19T00:09:03Z")

</div>

I’m trying to join two bits of data so I can write it to a parameter but for some reason the size is not acting like it’s text even though it’s a string. What and i doing wrong? I want it to read {5" Sleeve}

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/1/a12b09be62d21da05b39098e10e2b0c2e0f65763.png)

---

<div class="post-metadata">

**Author:** ![stillgotme](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@stillgotme](https://forum.dynamobim.com/u/stillgotme)\
**Post date:** [February 19, 2020, 1:11am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/2 "2020-02-19T01:11:51Z")

</div>

try set lacing to longest instead of auto, if that still doesnt solve your issue, try use codeblock with a+b+c,  
a is the prefix, b is the separator, and c is the suffix

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [February 19, 2020, 1:54am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/3 "2020-02-19T01:54:46Z")

</div>

string0 is not a string - you’re passing in a list of string or string - try using getItemAtIndex 0 or change the level for that input.

---

<div class="post-metadata">

**Author:** ![Evan.Pond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/evan.pond/32/98460_2.png) [@Evan.Pond](https://forum.dynamobim.com/u/Evan.Pond)\
**Post date:** [February 19, 2020, 10:28pm UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/4 "2020-02-19T22:28:51Z")

</div>

The code block worked best given that I actually have multiple values that need combined. So thanks for that! Now my problem the number is being carried out 6 decimal places, I tried rounding from the Element.GetParameterValueByName, but those seem to be integers already so I’m not sure where the training zeros are coming from, and more importantly how to get rid of them.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/eae311c8070781d894c9e3fef33b1427b7c2d139.png)

---

<div class="post-metadata">

**Author:** ![stillgotme](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@stillgotme](https://forum.dynamobim.com/u/stillgotme)\
**Post date:** [February 20, 2020, 2:14am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/5 "2020-02-20T02:14:50Z")

</div>

just split the string by “.” and get the first item and pass that to the ‘a’ in the code block.

convert your values to string by using string from object node

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [February 20, 2020, 3:16am UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/6 "2020-02-20T03:16:47Z")

</div>

Try using Springs.NumberToString node

 ![Springs_NumberToString](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/55f7df23de750be057e754db9f27bc9f522cf04b.png)

---

<div class="post-metadata">

**Author:** ![Evan.Pond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/evan.pond/32/98460_2.png) [@Evan.Pond](https://forum.dynamobim.com/u/Evan.Pond)\
**Post date:** [February 20, 2020, 3:46pm UTC](https://forum.dynamobim.com/t/concatenate-not-working/46989/7 "2020-02-20T15:46:31Z")

</div>

Thank you all for your help! I got it working.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d53f9932502223b78d1351e1ddb2fb4af597078b.png)
