laptop and a wrench

Erro

IEditEvents::OnSelectionChanged event is not fired with a programmatic feature selection by an attribute change of selection.

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM031253
EnviadoJanuary 11, 2008
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.2
Idioma do programaVBA
StatusWill Not Be Addressed

Informações Adicionais

No Public Explanation

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM031253

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download