Hi,
I have a polygon feature class and my task is to create a tool bar which provides the option of selecting the polygon feature class and reshape it the way we want and I was trying very hard on this for past two days but I am unable to figure it out what should I do
Finally, what I did is i used the addin button of Arc GIS 10 and wrote the code for the ???reshaping??? the polygon.
The error that I am getting is ???argument missing??? in the onclick() event, could you please provide me suggestions as how to proceed on this and is it the correct way that I am doing. I appreciate if any one can guide me on the right path
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.ADF;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geometry;
namespace ArcMapAddin8
{
public class Button1 : ESRI.ArcGIS.Desktop.AddIns.Button
{
public Button1()
{
}
protected override void OnClick()
{
GetCommand(ArcMap.Application.Document as IMxDocument,);
//
// TODO: Sample code showing how to access button host
//
ArcMap.Application.CurrentTool = null;
}
#region "Get Command by Name"
public ICommandItem GetCommand(IApplication application, System.String commandName)
{
ICommandBars commandBars = application.Document.CommandBars;
ESRI.ArcGIS.esriSystem.UID commandID = new ESRI.ArcGIS.esriSystem.UIDClass();
commandID.Value = "esriEditor.ReshapeFeatureTool";
return commandBars.Find(commandID, false, false);
}
#endregion
protected override void OnUpdate()
{
Enabled = ArcMap.Application != null;
}
}
}