# Rename SampleLine

**URL:** <https://forum.dynamobim.com/t/rename-sampleline/64238>\
**Category:** Civil 3D\
**Tags:** python, dynamo\
**Created:** [May 22, 2021, 3:43am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238 "2021-05-22T03:43:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lebinhx3c2012](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lebinhx3c2012/32/88192_2.png) [@lebinhx3c2012](https://forum.dynamobim.com/u/lebinhx3c2012)\
**Post date:** [May 22, 2021, 3:43am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238/1 "2021-05-22T03:43:59Z")

</div>

Hi Everyone!  
I need your help, I want to rename Sample Line  
Thanks in advance…  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f5c4ac40ee224ad03cf858ad1b936d79897432e.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [May 22, 2021, 4:06am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238/2 "2021-05-22T04:06:51Z")

</div>

Have you tried _CivilObject.SetName_?

---

<div class="post-metadata">

**Author:** ![lebinhx3c2012](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lebinhx3c2012/32/88192_2.png) [@lebinhx3c2012](https://forum.dynamobim.com/u/lebinhx3c2012)\
**Post date:** [May 22, 2021, 4:14am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238/3 "2021-05-22T04:14:25Z")

</div>

Do you have a way to automatically select the sample line, because has a lot of sample lines, I only know one way to select objects, but it takes a long time.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41ef32a69e6903eb90c880a9e45519c29f2279ed.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [May 22, 2021, 4:31am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238/4 "2021-05-22T04:31:50Z")

</div>

Maybe put them all on the same layer and then use _All Objects On Layer_?

---

<div class="post-metadata">

**Author:** ![lebinhx3c2012](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lebinhx3c2012/32/88192_2.png) [@lebinhx3c2012](https://forum.dynamobim.com/u/lebinhx3c2012)\
**Post date:** [May 24, 2021, 1:29am UTC](https://forum.dynamobim.com/t/rename-sampleline/64238/6 "2021-05-24T01:29:58Z")

</div>

Great! Thank you very much.
