Treat Multiple Breps as a single object

Hi All
A fair newbie question.

Say , I have a few breps rectangles and I made them into 3 group. I calculate the total area sizes of each group.

How can I colour each group as one single object depending on the total area size of the group. ( i.e the rectangles in each group are in a uniform colour.

Many thanks.

post your code?

Thanks in advance Joseph.

Please see attached.
total area.3dm (61.4 KB) total area.gh (5.6 KB)

missing
missing2

total area_2019Jun14a.gh (12.9 KB)

1 Like

Thanks Joseph, it looks all clear to me.

Thanks again.