Curtain wall mullion grid

Hi all ,
actually i am new in dynamo , and i am developing a script, in which i am trying to get the curves of curtain panels.
but every time i extract the curves from curtain panel it shows the 6 curves even though the curtain panel is rectangle(4 curves). i think this happens because of the grid lines.
see image for reference.

how ever, if anyone knows to extract geometry of curtain panel from Revit . that would also help me complete my script .
Thank you so much !

Hi @MONIL_BHATT

Welcome to Dynamo Forum!

Could you please drop relevant files in google drive or similar and share the link here?