Filter based on intersection

I want to read the room names from a linked CAD file. However, in these files, the room names are created in three separate text boxes (vary from single to triple boxes), so I need to find a way to group them. I’ve tried several methods to group nearby items and retrieve their indices for grouping them from the original list, but I haven’t been successful. Does anyone have any recommendations for such a task?

Something like this might work for distance-based grouping, but I don’t have a solution for tags that are are close/overlap (there’s a pair in your graphic that this script would likely fail to properly separate)

1 Like

Thanks, Robert!
Repeating the original list was a smart idea!