# Get Type from FamilySymbol

**URL:** <https://forum.dynamobim.com/t/get-type-from-familysymbol/66815>\
**Category:** Developers\
**Tags:** revit, python, dynamo\
**Created:** [August 4, 2021, 2:58pm UTC](https://forum.dynamobim.com/t/get-type-from-familysymbol/66815 "2021-08-04T14:58:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bimtechgts](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bimtechgts](https://forum.dynamobim.com/u/bimtechgts)\
**Post date:** [August 4, 2021, 2:58pm UTC](https://forum.dynamobim.com/t/get-type-from-familysymbol/66815/1 "2021-08-04T14:58:30Z")

</div>

Hi Everyone . I’m trying to get the Type Name from Family Symbol but the result is an empty list. Is there a way I can get the Type “300 x 600mm” from a list of 2 types (0 List)? Please help me. Thanks everyone…!

 ![question 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/9/191f5be8d536ebb5ac7c61f32a984dabf5829f52.png)

```auto
import clr
import System
from System.Collections.Generic import *

clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript.Geometry import *

clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
view = doc.ActiveView

filterframing = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StructuralFraming).WhereElementIsElementType().ToElements()
framingUse = []
for i in filterframing:
    if i.Family.Name == "M_Concrete-Rectangular Beam" :
        framingUse.append(i)
typeframing = []
for i in framingUse:
    if i.GetType().ToString() == "300 x 600mm":
        typeframing.append(i)

OUT = framingUse,typeframing

```

---

<div class="post-metadata">

**Author:** ![bimtechgts](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bimtechgts](https://forum.dynamobim.com/u/bimtechgts)\
**Post date:** [August 5, 2021, 7:05am UTC](https://forum.dynamobim.com/t/get-type-from-familysymbol/66815/2 "2021-08-05T07:05:49Z")

</div>

Help me

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [August 5, 2021, 7:44am UTC](https://forum.dynamobim.com/t/get-type-from-familysymbol/66815/3 "2021-08-05T07:44:42Z")

</div>

Hi @bimtechgts

To get the name of a Family Type, you can use the BuiltInParameters  
 ![000156](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9e5dcc8247309ebea0b01da5b1198b6211324d4b.png)

```
import clr
import System
from System.Collections.Generic import *

clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript.Geometry import *

clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
view = doc.ActiveView

#Get all the Family Types (Family Symbols in the Project)
allFramingTypesInProject = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StructuralFraming).WhereElementIsElementType().ToElements()

framingTypeNames = []
params = []
for type in allFramingTypesInProject:
	#Get the Family Type Name Parameter
	parameter = type.get_Parameter(BuiltInParameter.SYMBOL_NAME_PARAM)
	
	#Get the Value of the Parameter --> The Name
	typeName = parameter.AsString()
	
	#Add the Name to the Output List
	framingTypeNames.append(typeName)

OUT = allFramingTypesInProject, framingTypeNames
```

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 5, 2021, 1:36pm UTC](https://forum.dynamobim.com/t/get-type-from-familysymbol/66815/4 "2021-08-05T13:36:06Z")

</div>

I don’t believe `GetType()` is a valid method. Plus, your list is already of the `FamilySymbols`, you just need to get the name from them at that point (as you can see in @Joelmick’s code).
