That may not be too difficult, but questions arise [Message 2 will work only with certain answers assumed]:
Are the Polylines always vertical, or might they run at different angles? If at different angles, are they always parallel like these, or might they sometimes be at different angles from each other?
This might matter less than some other questions, but are they always straight?
Are they always drawn in the same direction, or might some be drawn from bottom to top and others from top to bottom? [If not always vertical but always parallel, some in opposite directions from each other?]
Again if always vertical, would you always need the top ends, or sometimes the bottom? If angles vary, what would be the criteria for which end to use?
What's different about the Polyline on the left, with the pull-down pointer thingie? Would that difference make any difference to such a routine?
An ordinary SPLINE command with ENDpoint Object Snap running would do this about as quickly as a custom routine [and you could do a lot of them in the time it would take to come up with such a routine] -- can you elaborate on the need?
Kent Cooper, AIA