Create schedule of elements fron floorplan on a sheet

Hello All, Is it possible to create a schedule with only the elements that are visible on a floorplan that we have added on a sheet. Can some one tell me which package i have to use to make this script or maybe there is a script already for this.

Do these lists allways have 6 items in them? In other words are they allways the same length?
image

One method would be to have a parameter with a value that designates the floorplan and then filter your schedule by that parameter field. You can use a Dynamo script to pull all elements visible in the view and set the parameter value to just those elements.