Reversed offset both sides

Hi everyone !
I am looking for a method .
Imagine a polyline that represent some joined walls viewed on top. You want to find the segments that represent the middle of each wall. How would you do it ? Could be great to make a tool for that thing…

You can make one or use Putterfish offset curve

sorry you want convert walls to lines

Yes Sir.

Thank you for the reply Mr. Pryor !

i think using mesh can be the first step to solve this

maybe someone can write a code to draw lines between midpoints of the blue lines in the image