Can Moi Generate a middle line from certain shapes?

 From:  Matadem
11801.1 
Good day.
If I have certain shapes...is there a script or can Moi generate a middle(centerline) from the shape?
I just need a line running from the center of the shape to be able to create a toolpath to machine.
attached is a dxf ...so basically I need the same thing but It should consist of a single curve.

Tnx!
Attachments: