<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to select the start for rubber band in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386487#M10267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use the rubberband class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally this would be done from a tool on the map, but due to the request this has to be from a menu option and not the tool bar options, When I then use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeometry geometry = rubberBand.TrackNew(screenDisplay, symbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the first point is taken from where the menu was.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there someway to wait till the user clicks inside the map before starting the rubber band but without using the toolbar control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Cole&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2013 12:40:23 GMT</pubDate>
    <dc:creator>PaulCole</dc:creator>
    <dc:date>2013-09-02T12:40:23Z</dc:date>
    <item>
      <title>how to select the start for rubber band</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386487#M10267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use the rubberband class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally this would be done from a tool on the map, but due to the request this has to be from a menu option and not the tool bar options, When I then use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeometry geometry = rubberBand.TrackNew(screenDisplay, symbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the first point is taken from where the menu was.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there someway to wait till the user clicks inside the map before starting the rubber band but without using the toolbar control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul Cole&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 12:40:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386487#M10267</guid>
      <dc:creator>PaulCole</dc:creator>
      <dc:date>2013-09-02T12:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to select the start for rubber band</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386488#M10268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I'm understanding this right then what you're wanting to do is call a custom tool you've already written from a menu instead of a toolbar.&amp;nbsp; When a custom tool is on an ArcMap toolbar, ArcMap handles activating that tool for you when the button is clicked.&amp;nbsp; When you call it from a menu, then you have to handle the activation yourself.&amp;nbsp; If your custom tool is on a toolbar, then all you need to do is call IDocument.CommandBars.Find to get that instance of the tool and set it to be the current tool using IApplication.CurrentTool.&amp;nbsp; If your custom tool is not already on a toolbar then you will need to create a new instance of the tool class, call ICommand.OnCreate and then set it to be the current tool using IApplication.CurrentTool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 13:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386488#M10268</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-09-02T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to select the start for rubber band</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386489#M10269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However the system doesn't have a tool for the operation that I doing nor do I want to add one to the toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have gone about it in another way. I am using the OnClick method of the map object, that can call a event delegate that my menu option can add or remove.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now all I have to do is change the cursor Icon when I activate my delegate. back to the help files&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386489#M10269</guid>
      <dc:creator>PaulCole</dc:creator>
      <dc:date>2013-09-03T14:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to select the start for rubber band</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386490#M10270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you'll find that things will be much easier if you simply write a custom tool for this.&amp;nbsp; That's how the system is designed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-select-the-start-for-rubber-band/m-p/386490#M10270</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-09-03T14:36:22Z</dc:date>
    </item>
  </channel>
</rss>

