IEnumerable<ViewSheet> AllSheets = new FilteredElementCollector(doc) .OfClass(typeof(ViewSheet)) .OfCategory(BuiltInCategory.OST_Sheets) .Cast<ViewSheet>();