First feature from body

<p>PartDoc swPart = (PartDoc)swModel;</p><p>Object[] bodiesObjectArray = swPart.GetBodies2((int)swBodyType_e.swAllBodies, true);</p><p>Body2 swFirstBody = bodiesObjectArray[0] as Body2;</p>

Is there any way to get first feature in processed body and then get type of feature?

SolidworksApi macros