from the archilab package you can use View Type and View.GetByType check out this forum post for more details
View Type
View.GetByType