Center Line Of Poly Beam

how to get center line of polybeam as brep like this ?

Can you post your geometry? Is this a Rhino.Inside.Tekla question? if so please change the category of the post.

Can you check this?

Center (249.7 KB)

i try script but dosent work i think because center of area
i upload script i hope u can help me with this

Center dosent (26.9 KB)

Here is one updated script. (22.3 KB)

thank u very much sir