PartDoc swPart = (PartDoc)swModel;
Object[] bodiesObjectArray = swPart.GetBodies2((int)swBodyType_e.swAllBodies, true);
Body2 swFirstBody = bodiesObjectArray[0] as Body2;
Is there any way to get first feature in processed body and then get type of feature?
SolidworksApi macros