vickarasu

INewLineFeedback

Discussion created by vickarasu on Aug 16, 2010
Latest reply on Aug 20, 2010 by juq
Hi!

I have to develope a tool for drawing polylines in C# for ArcGis Engine and i´m using INewLineFeedback interface. I have no problem with the start and end point, but I don´t know how to use the MoveTo method correctly in the MouseMove Event.

This is my code:

            if (m_pNewLineFeedback != null)
            {
                IPoint pPoint = pActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);
                m_pNewLineFeedback.MoveTo(pPoint);
            }

It draws a line when the mouse moves, but I don´t know how to remove the lines it draws before. Any ideas??

Thank you very much in advance!

Outcomes