static FilteredElementCollector GetElementsOfType( Document doc, Type type, BuiltInCategory bic) { FilteredElementCollector collector = new FilteredElementCollector( doc ); collector.OfCategory( bic ); collector.OfClass( type ); return collector; }