Confining dynamo edits to a space?

I am trying to place receptacles every x ft in a room. This is what I have so far:

I was wondering how I could confine this to a specific space, whether or not it’s a named space.

There is a node from clockworks room.boundries that returns the walls arround a room. I think it works for spaces too. It may helps you!