I was trying to create a Basetool which will collect points onMouseDown event. I was trying my tool to draw a line with the points collected. To collect points I used List. I am just putting the code here.
IPoint screenPoint; screenPoint = new ESRI.ArcGIS.Geometry.Point(); screenPoint.X = X; screenPoint.Y = Y; IScreenDisplay screenDisplay = (m_application.Document as IMxDocument).ActiveView.ScreenDisplay; IPoint mapPoint = screenDisplay.DisplayTransformation.ToMapPoint(X, Y); point.Add(mapPoint); // Point is List of IPoints
Using 2 MOuseDown, I want to collect 2 points and pass the putCoords method the points to create a Line. Can anyone please help me ?