Finding elements just outside of space

Hi Everyone,

I’m trying to create a script which will count number of sockets in all spaces in my project. I found a lot of solutions for doing that, however some of the sockets are placed just outside of the space (15mm into the wall) like on the photo below and are not picked up by the script.

I am using the Elements in Space node to get all elements in the space as shown below. Is there a way to maybe extend the spaces by 20mm in each direction so it picks up these sockets in the walls? Or any other solution so these sockets are counted?

Thanks for help!

Did you find a solution to this ?

Maybe get the BoundingBox of the Room(s) and then get all the Elements inside that BoundingBox?