Area doesn't show as text

Hi All,

For a project I wrote a Python script in Grasshopper that adds rectangles. I want the area shows automatically in the center of the rectangle Rhino view port.

Specially I want the the area shows In the offset as you can see in the picture. the problem is that the Area component gives an error. The error in the message balloon is: Curve must be closed for Area calculation. Can someone help me to solve this?


Kind regards,

Jan Sietse

you exploded your curves to segments, you will need to join them before getting the area.