© 2010 Autodesk
Introduction to Revit 2011 API
Element Filtering
1.2 A List of Family Types - Component Family
§Collect all the door types
<VB.NET>
        Dim doorTypeCollector = New FilteredElementCollector(m_rvtDoc)
        doorTypeCollector.OfClass(GetType(FamilySymbol))
        doorTypeCollector.OfCategory(BuiltInCategory.OST_Doors)
       Dim doorTypes As IList(Of Element) = doorTypeCollector.ToElements
</VB.NET>