Selecting the closest lines to a point?

I am exporting an autocad file to rhino, and I have to select the lines and join them everytime to make the rooms.

What I want is when I make a point to somewhere, I want it to select the closest lines and join them together.

The reason is I do not want to select the lines one by one everytime and join them together.

Is there a way to do it?

Hi @yerisen94,

Why don’t you just keep the doors as separate objects, thus omitting them from the evaluation?

Or why don’t you just export the polylines (instead of a bunch of lines) from autocad at the very beginning?