1

I am using vb.net working on ArcObjects. One requirement is to pop up a toolbox once the user click the end point (double click the point under editing status). So I want to know how can I know when user clicking the end point. Is it possible?

By the way, will this possible by using python?

  • 3
    Are you listing to the edit events? The IEditEvents.OnSketchFinished Event should give you when the user has finished the sketch. – Devdatta Tengshe May 27 '14 at 9:06
  • 3
    This is not possible using Python but, for future reference, when you have something extra to ask, please try to ask a new Question rather than a "supplementary". The Q&A format works best with one question per Question. – PolyGeo May 27 '14 at 9:11
  • This question shows the basic syntax for listening out for an editor event. This example uses VBA so should be easy to transfer to a VB .net environment – Hornbydd May 27 '14 at 19:40
1

Assuming you are using ArcGis add-in (version 10+).

To work with mouse clicks it's simplest to make a tool, but that means you have to do all the work and you can't change tools. For this you need to implement ITool.OnMouseDown or ITool.OnDblClick where the event work is all done for you.

If you want to use existing tools (edit, add feature, reshape..) and detect when the mouse is down then you need to listen for a specific event read this about wiring events.

I think that IMapControlEvents2.OnMouseDown may help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.