AnsweredAssumed Answered

How can I programmatically get the distance of the rubber band line and display it on a form or the line?

Question asked by Genaro.Garcia on Feb 6, 2017

I developed an ArcGIS 10.2.2 ArcObjects desktop tool for user to move features from on location to another using the iRubberband  on the mouse down event.  I select one feature, use the rubber band to move the new location, and drop it.  This works fine.

 

When the iRubberband interface invoked, I'm not able to obtain the length as the mouse is moved.  After I double-click the mouse to designate the location, action of the interface is released.  At that point I can get the length of the line.

 

How can I programmatically get the distance from the rubber band interface and display it in a form or the line as I move it?

 

ArcMap's Measure tools prime example of what I want to do.  As I measure a segment, it displays on a form.

Attachments

Outcomes