how to get projected area of a part?

hi,everyone!

i do not know how to get projected area of a part when we choose a plane of projection?please help me,thank you!

SolidworksApi macros