# Combine an object name and string to create new object name

**URL:** <https://forum.dynamobim.com/t/combine-an-object-name-and-string-to-create-new-object-name/82919>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [November 9, 2022, 3:09pm UTC](https://forum.dynamobim.com/t/combine-an-object-name-and-string-to-create-new-object-name/82919 "2022-11-09T15:09:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bourke\_d](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@bourke\_d](https://forum.dynamobim.com/u/bourke_d)\
**Post date:** [November 9, 2022, 3:09pm UTC](https://forum.dynamobim.com/t/combine-an-object-name-and-string-to-create-new-object-name/82919/1 "2022-11-09T15:09:05Z")

</div>

Hi, I have a script that creates offset alignments, and it works fine. I would like however the name of the new alignment to include the parent alignment name automatically eg: “ **Alingment - Mainstreet** \_Offset Alignment”. I have tried converting object to string and combining the strings, list combine and a few more but no luck. Does anyone have any suggestions?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9bfd72464398893c451197961f6c5c61c2d8272a.png)

---

<div class="post-metadata">

**Author:** ![kovacsv](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kovacsv](https://forum.dynamobim.com/u/kovacsv)\
**Post date:** [November 9, 2022, 3:31pm UTC](https://forum.dynamobim.com/t/combine-an-object-name-and-string-to-create-new-object-name/82919/2 "2022-11-09T15:31:35Z")

</div>

Hi,  
you can use the CivilObject.Name OOTB node and code block.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/3873e4853ace2a38f9d2d0822e77755485287df5.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4f1906c49d64ebe17638a45d80198638e88b90e1.png)

---

<div class="post-metadata">

**Author:** ![bourke\_d](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@bourke\_d](https://forum.dynamobim.com/u/bourke_d)\
**Post date:** [November 9, 2022, 4:13pm UTC](https://forum.dynamobim.com/t/combine-an-object-name-and-string-to-create-new-object-name/82919/3 "2022-11-09T16:13:09Z")

</div>

Thank you very much that was exactly what I was looking for!!
