Solved! Go to Solution.
<Extensions> <Extension id="Biogeography_Branch_HabitatDigitizer_10_Extension" class="Extension" productName="Habitat Digitizer" showInExtensionDialog="true" autoLoad="true"> <Description>The Habitat Digitizer Extension was designed to use a hierarchical classification scheme to attribute polygons, lines, and points delineated by visually interpreting georeferenced images such as aerial photographs, satellite images, and side scan sonar. The extension allows users to create custom classification schemes and rapidly delineate and attribute polygons, lines, and points using simple menus and dialogs.</Description> </Extension> </Extensions>
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Windows.Forms; namespace GEOTE_Addin { public class Extension1 : ESRI.ArcGIS.Desktop.AddIns.Extension { public Extension1() { MessageBox.Show("Constructor method Extension1 reached..."); } protected override void OnStartup() { MessageBox.Show("OnStartup method reached!"); WireDocumentEvents(); } private void WireDocumentEvents() { // // TODO: Sample document event wiring code. Change as needed // // Named event handler ArcMap.Events.NewDocument += delegate() { ArcMap_NewDocument(); }; ArcMap.Events.OpenDocument += delegate() { ArcMap_OpenDocument(); }; // Anonymous event handler ArcMap.Events.BeforeCloseDocument += delegate() { // Return true to stop document from closing ESRI.ArcGIS.Framework.IMessageDialog msgBox = new ESRI.ArcGIS.Framework.MessageDialogClass(); return msgBox.DoModal("BeforeCloseDocument Event", "Abort closing?", "Yes", "No", ArcMap.Application.hWnd); }; } void ArcMap_NewDocument() { // TODO: Handle new document event } void ArcMap_OpenDocument() { MessageBox.Show("You opened a doc"); } } }
<Extensions> <Extension id="Biogeography_Branch_HabitatDigitizer_10_Extension" class="Extension" productName="Habitat Digitizer" showInExtensionDialog="true" autoLoad="true"> <Description>The Habitat Digitizer Extension was designed to use a hierarchical classification scheme to attribute polygons, lines, and points delineated by visually interpreting georeferenced images such as aerial photographs, satellite images, and side scan sonar. The extension allows users to create custom classification schemes and rapidly delineate and attribute polygons, lines, and points using simple menus and dialogs.</Description> </Extension> </Extensions>
showInExtensionDialog="true" autoLoad="true"