Fossi

How to track single line (explicitly no polyline)

Discussion created by Fossi on Apr 5, 2011
Hi,

the Get Polyline From Mouse Clicks Snippet in the reference (http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000008v000000) demonstrates very nice how to track a polyline using the rubberband interface.

Is there something similar for a straight? Or any possibility to restrict the snippet above accordingly?

What I would like to do in an Add-in is rubberband a single line, i.e. a straight line without any vertices. First mouseclick should define the origin and start the drawing of a line which you could rubberband to the destination where a click or doubleclick ends digitizing and returns the geometry.

Any hint would be appreciated.

Thanks in advance,
Fossi

--
env: ArcObjects 10, VS2010, C#

Outcomes