AnsweredAssumed Answered

Looping though selection does not show values

Question asked by mjnelson42 on Sep 27, 2012
Latest reply on Sep 27, 2012 by mjnelson42
Created a little tool that will give information about the selected features. But if I have not started an edit session values for each feature do not show up. I can start and stop an edit session and it work fine, so you dont have to be editing. Im guessing there is something easy I need to initialize. Or perhaps I need to get the features differently?

        Dim enumFeat As IEnumFeature = Nothing
        Dim selFeat As IFeature

            enumFeat = My.ArcMap.Document.FocusMap.FeatureSelection
            selFeat = enumFeat.Next
            Do Until selFeat Is Nothing
                    selFeat = enumFeat.Next