Is this possible to connect all the curves to the nearest curve?

Is there any option or short process?please help?

I generally use the gumball for quick edits like this. Click the Gumball’s white menu ball, turn on Snappy Dragging, and Align to Object:

Ok thanks.but is there any python script to do it instantly?

_Extend will take a boundary object and automatically connect it if it intersects. You can also extend ToPoint and manually pick the points.

And you can make a script to do this. Instead of manually picking a point, you could find the nearest point on your boundary curve to each endpoint. Then you can either extend or move the endpoint to that point.

I am not smart enough to create a script,sir?if you help me it will be my pleasure sir?

Is there any python script to do it?

Is is possible?it will help many users