Get the handle for the feature "combine"

Dear All --

I have a part which has a couple of combine operations done. I am trying to find out which is the main body and the subtracted body in the combine operation.

This is how I proceeded.

private void TraverseFeat()

{

     ModelDoc2 swModel = swapp.ActiveDoc;

     Feature swFeat = swModel.FirstFeature()

     while(swFeat != null)

     {

          if(swfeat.GetTypeName2().ToUpper() == "COMBINEBODIES")

          {

               FindBodies(swFeat, swModel);

          }

          swFeat = (Feature)swFeat.GetNextFeature();

     }

}

private void (Feature swFeat, ModelDoc2 swModel)

{

     //What should I be doing to get the specific handle on combine operation

     //I want to find out which is the mainbody and which is the subtracted body

     //The below line gives me always "NULL" value for swCmbFeatData

     ICombineBodiesFeatureData swCmbFeatData = (ICombineBodiesFeatureData)swFeat.GetSpecificFeature2();

}

cheers.

SolidworksApi macros