Create multiple 3D view from planview(floorplan) by selection

I’m working on a script to create 3D views from multiple Floorplans/planviews by selection. I’m struggling with getting the selected floorplan/planview created after selecting it with data-shapes multiform. If I’m running my script only for creating 3D views all the planview in the whole project will be created as a 3D view. Can anyone help me with putting the right nodes in my script after selecting it with the data-shapes nodes - see picture below:

Please refrain from spamming the forum with duplicate topics.

Closing this thread - continue in the one linked above.