# Renaming family using combined parameter values

**URL:** <https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331>\
**Category:** Revit\
**Created:** [October 4, 2017, 6:48am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331 "2017-10-04T06:48:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florentino\_Dujale](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Florentino\_Dujale](https://forum.dynamobim.com/u/Florentino_Dujale)\
**Post date:** [October 4, 2017, 6:48am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/1 "2017-10-04T06:48:40Z")

</div>

Hi, i hope someone can help me, i have a script here for renaming a family using the values from 2 parameters, I’m having difficulty figuring out how Element.Setname to work, as you can see its on the last leg, i just cant make it work. and il be gladly to be corrected on the script if you find something wrong. thanks in advance.

 ![Renaming Family](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/3/33471f970cb4d0ee4fca0285c7e6269c93f7659a.PNG)

---

<div class="post-metadata">

**Author:** ![Christian\_Vestesen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Christian\_Vestesen](https://forum.dynamobim.com/u/Christian_Vestesen)\
**Post date:** [October 4, 2017, 7:24am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/2 "2017-10-04T07:24:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/73b38b10e86d8a8d1d83df98d78a71a5a9411b0d.jpg)

Skip the FamilyType.Family

---

<div class="post-metadata">

**Author:** ![Florentino\_Dujale](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Florentino\_Dujale](https://forum.dynamobim.com/u/Florentino_Dujale)\
**Post date:** [October 4, 2017, 7:28am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/3 "2017-10-04T07:28:55Z")

</div>

didn’t work as well, I’ve actually tried it also earlier. thanks for the replay.

 ![Renaming Family2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/ca77a18865682023947297a4a1a688dc0fec9735.PNG)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 4, 2017, 7:54am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/4 "2017-10-04T07:54:18Z")

</div>

Hi @Florentino_Dujale

Fix the empty values here.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/f/6fe32f60aadb65cc27b5bfefd6d8a44041c3585a.jpg)

Then try again.

The empty values may result in equal family names.

Marcel

---

<div class="post-metadata">

**Author:** ![Florentino\_Dujale](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Florentino\_Dujale](https://forum.dynamobim.com/u/Florentino_Dujale)\
**Post date:** [October 4, 2017, 8:15am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/5 "2017-10-04T08:15:25Z")

</div>

to be honest, i don’t know how to fixed it, don’t want to through it because its another long time of thinking for again, but what i did was take 1 from the list and do the same process and the idea is try it 1st for 1 item to rename, unfortunately doesn’t work also. i did a lot of trial and error. i feel I’m just missing something between the connection of element type to element.setname. thanks for your time on looking into this.

---

<div class="post-metadata">

**Author:** ![Christian\_Vestesen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Christian\_Vestesen](https://forum.dynamobim.com/u/Christian_Vestesen)\
**Post date:** [October 4, 2017, 8:34am UTC](https://forum.dynamobim.com/t/renaming-family-using-combined-parameter-values/15331/6 "2017-10-04T08:34:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f25d1016513d32d356c70feef5796a1c1376a628.png)

Remove Empty Strings From List will do it.

Try it 🙂
