Remove points/undo from a new line feedback

462
2
01-24-2013 01:10 AM
HarshaPerera
New Contributor III
Hello,

Does anyone know how you would undo the addition of a new point to a newline feed back. We are trying to implement tracing functionality using a newline feedback and need to remove points if the user moves the mouse backwards.

Thanks,
Harsha
0 Kudos
2 Replies
NeilClemmons
Regular Contributor III
You would need to stop the feedback and get the polyline object it returns.  Restart the feedback, QI over to IPointCollection and add all of the points except for the last one back to it.  After that, call MoveTo and pass in the current mouse location to connect the feedback back to the mouse cursor.
0 Kudos
HarshaPerera
New Contributor III
Thanks for the help Neil. However, in the end we decided to go with a group feedback as adding the point back in one by one caused too much flicker if there was a number of points.
0 Kudos