How to get a polysurface's outer boundary?

i am refering to

and

( i used some c# script to solve the question)

and i love this forum :heart: and all members.

have a nice evening - cheers - tom