Line in the middle of two

Hi,

does anyone have macro to draw a line/polyline between two polylines?

With ability to set max ammount of polyline points.

Something like this:

SolidworksApi/macros