laptop and a wrench

Bogue

‘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

Dernière publication: August 31, 2014 ArcGIS Engine
Numéro d’ID de bogue NIM076230
EnvoiDecember 14, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS Engine
Version trouvée10.0
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitation7 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: NIM076230

Logiciel:

  • ArcGIS Engine

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement