© 2010 Autodesk
Introduction to Revit 2011 API
Element Filtering
1.1 A List of Family Types - System Family
§Collect all the wall types (2nd and 3rd using shortcuts)
<VB.NET>
        Dim wallTypeCollector1 = New FilteredElementCollector(m_rvtDoc)
        wallTypeCollector1.WherePasses(New ElementClassFilter(GetType(WallType)))
        Dim wallTypes1 As IList(Of Element) = wallTypeCollector1.ToElements
</VB.NET>
<VB.NET>
        Dim wallTypeCollector2 = New FilteredElementCollector(m_rvtDoc)
        wallTypeCollector2.OfClass(GetType(WallType))
</VB.NET>
<VB.NET>
              Dim wallTypeCollector3 = _
          New FilteredElementCollector(m_rvtDoc).OfClass(GetType(WallType))
</VB.NET>