<?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 Re: SearchTolerance in ArcGIS Pro in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764661#M362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Pro, you can use the &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14141.html"&gt;SelectionEnvironment &lt;/A&gt;class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SelectionTolerance&lt;/P&gt;&lt;P&gt;SetSelectionTolerance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 16:22:03 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2020-06-26T16:22:03Z</dc:date>
    <item>
      <title>SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764660#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcObjects, there is a SearchTolerance property on IMxDocument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an equivalent to this in the ArcGIS Pro SDK?&amp;nbsp; If so, where can I retrieve the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, what can I do to mimic what SearchTolerance does in ArcMap?&amp;nbsp; We use it with the Envelope.Expand method when detecting if a click point is near any existing features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcMap, SearchTolerance changes depending on the zoom.&amp;nbsp; The farther you zoom out, the larger the tolerance is and vice-versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 15:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764660#M361</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2020-06-25T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764661#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Pro, you can use the &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14141.html"&gt;SelectionEnvironment &lt;/A&gt;class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SelectionTolerance&lt;/P&gt;&lt;P&gt;SetSelectionTolerance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764661#M362</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-06-26T16:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764662#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followup - the value is 3 and appears to be in Device Units which I assume is pixels.&amp;nbsp; How can I convert this value to the map linear unit so I can pass it into Envelope.Expand?&amp;nbsp; Is there an easy way to do this?&amp;nbsp; ArcObjects did this automatically with the SearchTolerance property (SearchTolerancePixels was the value in pixels).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764662#M363</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2020-06-26T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764663#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the past ive calculated the pixel linear distance from a known point in the map, either the mouse location or the center of the map as a MapPoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;    &lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; Polygon &lt;SPAN class="token function"&gt;CreateSearchPolygon&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MapPoint mapPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; pixels&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;//get search radius&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; screenPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Active&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;MapToScreen&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; radiusScreenPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;screenPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; pixels&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; screenPoint&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; radiusMapPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Active&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ScreenToMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;radiusScreenPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; searchRadius &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Distance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; radiusMapPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above i was creating a search polygon around a mappoint by pixels.&lt;/P&gt;&lt;P&gt;The variable searchRadius is your linear distance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764663#M364</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764664#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you Sean.&amp;nbsp; This&amp;nbsp;is exactly what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 17:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764664#M365</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2020-06-26T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764665#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is SelectionTolerance used by ArcGIS Pro itself (e.g. is it used by the native select tool)?&amp;nbsp; If so, can the tolerance setting be controlled by the user (is there an option in the UI somewhere)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2020 05:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764665#M366</guid>
      <dc:creator>RobertGurrieri</dc:creator>
      <dc:date>2020-06-28T05:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764666#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I don't see an UI setting for Search Tolerance either.&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 21:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764666#M367</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-06-29T21:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: SearchTolerance in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764667#M368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp;you Uma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/searchtolerance-in-arcgis-pro/m-p/764667#M368</guid>
      <dc:creator>RobertGurrieri</dc:creator>
      <dc:date>2020-06-30T15:16:40Z</dc:date>
    </item>
  </channel>
</rss>

