# Select specific family types by name of the family or category

**URL:** <https://forum.dynamobim.com/t/select-specific-family-types-by-name-of-the-family-or-category/86493>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [February 22, 2023, 5:47pm UTC](https://forum.dynamobim.com/t/select-specific-family-types-by-name-of-the-family-or-category/86493 "2023-02-22T17:47:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ic723941](https://avatars.discourse-cdn.com/v4/letter/i/839c29/32.png) [@ic723941](https://forum.dynamobim.com/u/ic723941)\
**Post date:** [February 22, 2023, 5:47pm UTC](https://forum.dynamobim.com/t/select-specific-family-types-by-name-of-the-family-or-category/86493/1 "2023-02-22T17:47:43Z")

</div>

Hello.

I’m trying to rename family types using “Element.Setname” so I have to enter family types, but since im changing them with a list of data, I need them to match the same position as the data on the list.  
Lets say that my “data list” contains 5 names and my “family type list” contains 20 types. I want to choose only the 5 I need out of the 20 types that will appear, and those 5 arrange them specifically so they match the information in the other list.

-When reaching ElementSetName

- Input Element list is in Random order extracted by Dynamo from revit  
-Input name has the new values in order  
so the output list has the new values but not in the family types I need

 ![dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/43d0609601bd40ebafc0a36acd11fd4d897f0d8c.png)

---

<div class="post-metadata">

**Author:** ![Andriy](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Andriy](https://forum.dynamobim.com/u/Andriy)\
**Post date:** [February 23, 2023, 1:56am UTC](https://forum.dynamobim.com/t/select-specific-family-types-by-name-of-the-family-or-category/86493/2 "2023-02-23T01:56:16Z")

</div>

Try to add List.AllIndicesOf node. As first input use selected family types from revit (you have elements.name node for it). As second input use old type names from excel.

Then use List.GetItemAtIndex. List input will be All family types from category node

 ![43d0609601bd40ebafc0a36acd11fd4d897f0d8c](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/3/93157d53d5fe6e3e0a197b2ad8a0fd40d317bb9e.png)
