Hi,
Because your polygon come from regular grid spaced 82.0210*82.0210, you could use a solution without programming.
1. create an array of points offseted half of your grid 41.0105*41.0105

2. export your points and polygon in SDF file, and connect via FDO
3. create a buffer 5m on your polygon, and make overlay Substraction or indentity to remove points insed polygon and keep only points between original polygons
4. create a block with 8 lines and MAPIMPORT your points with this bloc

5. explose blocks and export lines as SDF, and connect SDF via FDO
6. create a buffer 23m from your original polygons and FDO overlay (identity) to remove extra line

7. MAPIMPORT your SDF of cutted lines, and MAPCLEAN with remove isolated node with a tolerance of 29
8. You should obtain only simple polyline between original polygone.
9. In some intersection you just have to remove unwanted segment

10. once intersection are cleaned, MAPCLEAN to join all segment
Olivier
Olivier Eckmann
