laptop and a wrench

Bug

In ArcMap Version 10 SP3, custom map elements that do not implement IGraphicsComposite and IEnumElement interfaces crash when their properties are accessed.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM074919
SubmittedNovember 3, 2011
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found10.1
Version Fixed10.1
StatusFixed

Workaround

In order to work with SP3, add the IGraphicsComposite and IEnumElement interfaces to the custom element class: Example implementation: #region IGraphicsComposite Members public IEnumElement get_Graphics(IDisplay Display, object Data) { return this; } #endregion #region IEnumElement Members private int enumIndex = 0; public IElement Next() { if (enumIndex == 0) { enumIndex++; IElement element = new PolygonElementClass(); element.Geometry = m_customElement; return element; } throw new COMException("Iterator End", 1); return null; } public void Reset() { enumIndex = 0; } #endregion

Steps to Reproduce

Bug ID: NIM074919

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options