Get floor pattern line

Hi,

It is not an easy task.
You could use the Compound Pattern Reference node as a starting point.
I think you have to go through the References (API method) to retrieve some points on the red lines.