How to determine closed curve by intersecting with line

Hi Guys,
I have a quick question. Is there anyway to determine those vertical line belong to which closed curve? Kindly note that, those closed curves are on the same plane and vertical lines ain’t.

I have attach herewith a sample file for your reference.
LineIntersect.3dm (51.5 KB)

Any help would be greatly appreciated :slight_smile: (21.6 KB)


If you only want the get the inner curves: (22.5 KB)


@Mahdiyar Thank you very much