laptop and a wrench

Error

‘IViewRefresh.RefreshItem’ method throws error “ArgumentException ("Value does not fall within the expected range.")” while refreshing the bounds of newly added graphic element to the graphics container

Última publicación: August 31, 2014 ArcGIS Engine
Número de ID del error NIM076230
EnviadoDecember 14, 2011
Última modificaciónJune 5, 2024
Relacionado conArcGIS Engine
Versión encontrada10.0
Lenguaje del programaC#
Sistema operativoWindows OS
Versión de sistema operativo7 64 Bit
EstadoWill Not Be Addressed

Información adicional

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solución alternativa

1. Comment the following lines of code in the application:((IViewRefresh)axMapControl1.ActiveView).RefreshItem(Element);And uncomment the below lines of code:((IViewRefresh)axMapControl1.ActiveView).PartialRefreshShape(esriViewDrawPhase.esriViewGraphics, Element, Element.Geometry, 1); 2. Run the application in debug mode.3. Use the ‘New polygon’ element tool to draw a new polygon on the map. 4. The ElementAdded event is then fired, and the code will execute successfully.

Pasos para reproducir

ID del error: NIM076230

Software:

  • ArcGIS Engine

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga