Orientation Extraction

Hello All,

I am a novice to solidworks API. I would like to extract the orientation of different planes in my part with respect to a global co-ordinate system using C#. I have created an addin for the same (PFA). In the addin, when I click the add button, I want the orientation of the plane to be displayed in the PropertyGrid.

Can anyone please give me a good starting point to do the same?

Thanks in advance.

SolidworksApi macros