IEditEvents::OnSelectionChanged event is not fired with a programmatic feature selection by an attribute change of selection.
最後に公開された状態: August 25, 2014No Product Found
不具合 ID 番号
NIM031253
送信されました
January 11, 2008
最終更新日
June 5, 2024
適用対象
No Product Found
見つかったバージョン
9.2
プログラム言語
VBA
ステータス
Will Not Be Addressed
開発チームは、この問題またはリクエストを検討した結果、これに対処しないことに決定しました。 問題の「参考情報」セクションに、さらに詳細な説明が示されていることがあります。
参考情報
No Public Explanation
対処法
The client should be aware that it is necessary to call the SelectionChanged() method on the ISelectionEvents interface of the Map in order to force it to fire the event to the Editor (and other clients). Additionally it is not necessary to call the IFeatureSelection::SelectionChanged() method on the layer, as this is called internally by IFeatureSelection::SelectFeatures()Code was updated in the MXD at the test data path and saved as OnSelectionChanged_CORRECTED.mxdUpdated Code Dim pMapSelectionEvents As ISelectionEvents Set pMapSelectionEvents = pMap ... '''''''''''''''''''''''''''''''''''''''''''''' 'Make the query filter Set pQueryFilt = New QueryFilter pQueryFilt.WhereClause = "Sub_region = 'S Atl'" 'Perform the selection and refresh the view Set pFeatSel = pEditLayers.CurrentLayer pFeatSel.SelectFeatures pQueryFilt, esriSelectionResultNew, False pMapSelectionEvents.SelectionChanged Debug.Print m_pEditor.SelectionCount '''''''''''''''''''''''''''''''''''''''''''''' 'Refresh pMxDoc.ActiveView.PartialRefresh esriViewGeography, Nothing, Nothing