7 Replies Latest reply on Mar 15, 2017 11:20 AM by Dave Paul

    Select a feature in FeatureManager by Name

    Dave Paul

      I'm missing something.

      I want to add a feature to a multi-feature selection in the feature tree by feature name.  The user selects a feature and I want to add one to that set.  The user selected feature work well.  I have all the right data, but the feature will not highlight.

       

      ....
                      swFeatureName = myFeature.GetNameForSelection(out swFeatureType);
                      Debug.Print("   Feature name: " + swFeatureName);
                      Debug.Print("   Feature type: " + swFeatureType);
                      swModel.Extension.SelectByID2(swFeatureName, swFeatureType, 0, 0, 0, true, 0, null, 0);
      ....
      

       

      Do I need to just traverse the feature tree and search?