# Ad prefix to the family type by dynamo and rename the family name and push the new names from dynamo to revit

**URL:** <https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434>\
**Category:** DesignScript\
**Tags:** dynamo\
**Created:** [June 20, 2019, 4:45pm UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434 "2019-06-20T16:45:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abouassali90](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@abouassali90](https://forum.dynamobim.com/u/abouassali90)\
**Post date:** [June 20, 2019, 4:45pm UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434/1 "2019-06-20T16:45:22Z")

</div>

Hey !!

Question 1 - i want to rename Family Type in my project , just add the prefix ELE\_LUM\_ to the family type of the Category : Luminaires .  
i did my script like this but i can’t push the new names from revit to dynamo so if you could help me i will be thankful.

Question 2 - Also i want to add the same prefix ELE\_LUM\_ to the family name in the Category Luminaire but i cant chose the family name in dynamo ;  
is there a method just to filter the wanted family name in dynamo

 ![Script%20to%20rename%20family%20type](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/ca0ee687ce8df8c46603c097f1c48fd00dc21670.jpeg)

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [June 20, 2019, 9:10pm UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434/2 "2019-06-20T21:10:22Z")

</div>

The problem you are having is because you are just collecting the Elements (instances) of each type, not the Family Types nor the Families.

See this post:

> [@Rename types with Dynamo](https://forum.dynamobim.com/t/rename-types-with-dynamo/15071):
>
> Hi everyone, I have tried to rename types in revit using dynamo, and i got this warning: The parameter is read only, is it impossible to rename types with dynamo? Thanks

---

<div class="post-metadata">

**Author:** ![cftrevizo](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@cftrevizo](https://forum.dynamobim.com/u/cftrevizo)\
**Post date:** [June 21, 2019, 2:53am UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434/3 "2019-06-21T02:53:51Z")

</div>

Something like the image below…

 ![Add%20Prefix](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/8/a88be046d5520248ad330cfc4f9cefbc8aef100e.png)

---

<div class="post-metadata">

**Author:** ![abouassali90](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@abouassali90](https://forum.dynamobim.com/u/abouassali90)\
**Post date:** [June 24, 2019, 8:05am UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434/4 "2019-06-24T08:05:47Z")

</div>

Hello @SeanP@cftrevizo  
thanx for your answers 🙂 , i tried this one with element Type (instance type) and still doesnt work 😕  
but i dont want to select all the family i want to choose them by categories to chose the family type of the category LUMINAIRES.

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/a/0a2ae216b87439d9763e786e46ad109123fd4d65.jpeg)

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [June 24, 2019, 12:12pm UTC](https://forum.dynamobim.com/t/ad-prefix-to-the-family-type-by-dynamo-and-rename-the-family-name-and-push-the-new-names-from-dynamo-to-revit/37434/5 "2019-06-24T12:12:29Z")

</div>

You could try the node “Element.SetName” of the package “BattleBIM”. This node works for me.
