Filtering sheets by view types placed on sheet

Hi,

Does anyone have solution to filter sheet list by views that are place on sheets? My goal is to list sheets with one or two condition. First is to filter by view type (sheet contains FloorPlanView) and second (not so critical) is to check if the sheet has more than one view placed on it.

I’m able to list views on sheets and views that are placed on views and so on, but can’t seem to find any relation between these.

Any help would be appreciated!

After the post I figured that I’ve watched parameters from viewport on sheet and not the view itself. So the view contains parameter for sheet number and that can be used to filter results.

So the solution is to list all elements of floorplan familytypes and then filter them by their parameter sheet number. Then match those numbers to sheet list and take only wanted sheets.