<?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 Want to Create a Select by Rectangle in ArcObjects using C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338480#M8883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating an Add-in using ArcObjects and C#, technology I haven't used in 10 plus years.&lt;/P&gt;&lt;P&gt;I'm creating 3 tools that work on a specific polygon layer. &lt;/P&gt;&lt;P&gt;Tool 1 - Select by Line; summarize selected polygon areas&lt;/P&gt;&lt;P&gt;Tool 2 - Select by Polygon; summarize selected polygon areas&lt;/P&gt;&lt;P&gt;Tool 3 - Select by Rectangle; summarize selected polygon areas&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this sample;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000969000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000969000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;...and it works great for selecting my polygons using a line.&lt;/P&gt;&lt;P&gt;I was able to convert it pretty easily to selecting my polygons by using a polygon.&lt;/P&gt;&lt;P&gt;I changed theses lines;&lt;/P&gt;&lt;P&gt;private INewLineFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IPolyline polyline;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;private INewPolygonFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IPolygon polygon;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(and fixed all the errors that were generated.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to do something like this;&lt;/P&gt;&lt;P&gt;private INewRectangleFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IRectangle rectangle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't appear to be the same animal.&lt;/P&gt;&lt;P&gt;Can anyone give me a nudge as to the interfaces I need to implement?&lt;/P&gt;&lt;P&gt;I know I have to change some of the logic as well, since I'm not expecting a double click event (as shown in the sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 23:27:49 GMT</pubDate>
    <dc:creator>ThomasHasselbeck</dc:creator>
    <dc:date>2014-07-24T23:27:49Z</dc:date>
    <item>
      <title>Want to Create a Select by Rectangle in ArcObjects using C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338480#M8883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating an Add-in using ArcObjects and C#, technology I haven't used in 10 plus years.&lt;/P&gt;&lt;P&gt;I'm creating 3 tools that work on a specific polygon layer. &lt;/P&gt;&lt;P&gt;Tool 1 - Select by Line; summarize selected polygon areas&lt;/P&gt;&lt;P&gt;Tool 2 - Select by Polygon; summarize selected polygon areas&lt;/P&gt;&lt;P&gt;Tool 3 - Select by Rectangle; summarize selected polygon areas&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this sample;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000969000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000969000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;...and it works great for selecting my polygons using a line.&lt;/P&gt;&lt;P&gt;I was able to convert it pretty easily to selecting my polygons by using a polygon.&lt;/P&gt;&lt;P&gt;I changed theses lines;&lt;/P&gt;&lt;P&gt;private INewLineFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IPolyline polyline;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;private INewPolygonFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IPolygon polygon;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(and fixed all the errors that were generated.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to do something like this;&lt;/P&gt;&lt;P&gt;private INewRectangleFeedback m_lineFeedback;&lt;/P&gt;&lt;P&gt;IRectangle rectangle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't appear to be the same animal.&lt;/P&gt;&lt;P&gt;Can anyone give me a nudge as to the interfaces I need to implement?&lt;/P&gt;&lt;P&gt;I know I have to change some of the logic as well, since I'm not expecting a double click event (as shown in the sample).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 23:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338480#M8883</guid>
      <dc:creator>ThomasHasselbeck</dc:creator>
      <dc:date>2014-07-24T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Want to Create a Select by Rectangle in ArcObjects using C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338481#M8884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INewRectangleFeedback.Stop returns an IGeometry object...you can test to see what type of IGeometry was returned, cast it to the correct type of object, and proceed from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 16:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338481#M8884</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2014-07-25T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Want to Create a Select by Rectangle in ArcObjects using C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338482#M8885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I actually punted on this approach and took advantage of the selection set create by the all the native selection tools.&amp;nbsp; My Add-in simply does a summarize on the current selection set.&amp;nbsp; Dropped from 3 tools to one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 18:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/want-to-create-a-select-by-rectangle-in-arcobjects/m-p/338482#M8885</guid>
      <dc:creator>ThomasHasselbeck</dc:creator>
      <dc:date>2014-08-14T18:30:50Z</dc:date>
    </item>
  </channel>
</rss>

