# Changing Family Type of Elevation

**URL:** <https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [July 8, 2019, 2:46pm UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064 "2019-07-08T14:46:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [July 8, 2019, 2:46pm UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064/1 "2019-07-08T14:46:30Z")

</div>

Hi, does anyone know how I can change the Type of a family with dynamo?  
See picture below

SetParameterByName node, and using “Type” doesn’t seems to work. It gives an error saying the parameter doesn’t exist.

 ![change%20family%20type](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/2523a09afbcdafbbb786780147d06c2d8c9557cb.jpeg)

I’m trying to change _ **Type** _, under Family. Not the Symbol parameter since this would change it for all family types in the project. Preferably not using the family type dropdown menu, since this can cause some problems when someone else opens the script with dynamo. Anyone knows how to do this with a code block?

---

<div class="post-metadata">

**Author:** ![Dmytro\_Serebriian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dmytro_serebriian/32/75575_2.png) [@Dmytro\_Serebriian](https://forum.dynamobim.com/u/Dmytro_Serebriian)\
**Post date:** [July 8, 2019, 3:12pm UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064/2 "2019-07-08T15:12:31Z")

</div>

Hi, [selim.celem](https://forum.dynamobim.com/u/selim.celem)!  
Try something like this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/7/d75fd9093cd3a5689d67271da6e1075c0a40a009.png)  
FamilyInstance.SetType you can get from ClockWork Package

---

<div class="post-metadata">

**Author:** ![Dmytro\_Serebriian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dmytro_serebriian/32/75575_2.png) [@Dmytro\_Serebriian](https://forum.dynamobim.com/u/Dmytro_Serebriian)\
**Post date:** [July 8, 2019, 3:58pm UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064/3 "2019-07-08T15:58:22Z")

</div>

It seems, my solution doesn’t work with levels  
I think this will help you:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/1/71b1acb3d7683f77e10b2747247a6a1d61d3c8cf.png)  
Python for copy/pasting:

> ```
> import clr
> clr.AddReference('RevitAPI')
> from Autodesk.Revit.DB import BuiltInParameter, FilteredElementCollector
> clr.AddReference("RevitServices")
> import RevitServices
> from RevitServices.Persistence import DocumentManager
> from RevitServices.Transactions import TransactionManager
> doc = DocumentManager.Instance.CurrentDBDocument
> 
> el_types = FilteredElementCollector(doc).WhereElementIsElementType().ToElements()
> el = UnwrapElement(IN[1])
> TransactionManager.Instance.EnsureInTransaction(doc)
> 
> for i in el_types:
> name = i.get_Parameter(BuiltInParameter.SYMBOL_NAME_PARAM).AsString()
> if name ==IN[0]:
> type = i
> for k in el:
> k.ChangeTypeId(type.Id)
> 
> TransactionManager.Instance.TransactionTaskDone()
> OUT = type
> 
> ```

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [July 9, 2019, 7:28am UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064/4 "2019-07-09T07:28:48Z")

</div>

Thank you very much @Dmytro_Serebriian! It worked!

---

<div class="post-metadata">

**Author:** ![Nrs.G](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@Nrs.G](https://forum.dynamobim.com/u/Nrs.G)\
**Post date:** [January 16, 2023, 6:06pm UTC](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064/5 "2023-01-16T18:06:18Z")

</div>

Hello @Dmytro_Serebriian

Any help here [Rename Family Types of a List of elements, using a list of names](https://forum.dynamobim.com/t/rename-family-types-of-a-list-of-elements-using-a-list-of-names/84982)?

Any suggestion is very welcome 🙂

Cheers,  
Nery
