Help collecting linked elements inside a bounding box

I can’t help yet with Python but here is one way to get elements from linked file:

Hope this helps…