3 Replies Latest reply on Nov 6, 2017 8:12 AM by Manikandan Babu

    How to get components inside a folder in assembly tree

    Deeksha Gupta

      Please suggest how to get components inside HARDWARE folder using APIs.

      I have written the code till I am able to access the folder:

       

      object[] objFeats =  modDoc.FeatureManager.GetFeatures(true);

       

      foreach (object objFeat in objFeats)

      {

       

      Feature feat = objFeat as Feature;

       

      string featType = feat.GetTypeName2();

       

      if (featType.Contains("FtrFolder") && feat.Name == "HARDWARE")

      {

       

      // get components inside feat folder

      }

      }