HOSNEYALAA
I am confused.
The drawing is different to the picture you posted.
I assume you want the distance from the middle of one Pline to the middle of another Pline.
The measured distance need not be perpendicular to either Pline.
Is that correct ??
Have you attempted to write any code yourself ? ...
or do you want someone to write the code for you ?