Interesting topic. I have a similar question.
I have used this python script with a scope box and all works fine as long as i use the “Select model element” with one scope box. But i want to take this a step further by using categories to select all scope boxes. Then the issues starts. The script won´t run through.

So to my question… What am i doing wrong? Is it possible to repeat the script for each scope box?
I have tried to get around this but i do not manage to full fill my wish

@jostein_olsen Thank you, I do not have a nice blog like your self, and I thought I might share a little something while trying to learn for my self. How to make this work for multiple walls? A limitation with the above python script is that it will only work for a single wall element, and that is not very efficient. We have two options to make it work for a list of walls: Wrap the python script in a custom node, be sure to define the input correctly as explained by @Dimitar_Venkov in t…

Thanks for the fast reply.
Ok, so i have no experience with python or programming… i tried to read trough and understand witch part i should implement and i got this.
I did not work. Maybe you could point me in the right direction?

Great post Einar_Raknes. This is defiantly a nugget of gold I have found, thank you. I am a new Dynamo user and not that familiar with code writing. I have been trying to modify your code to collect the elements within the active model and linked models as well. Unfortunately I am not succeeding. I would greatly appreciate any help you could offer in helping me achieve my goal.