<?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: &amp;quot;Picking entities&amp;quot; mechanic best practice? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801054#M1976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nasir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the detailed description. It looks like something I can use! I'll check it out in more detail after I return from the holidays next January.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 15:18:40 GMT</pubDate>
    <dc:creator>RehmSoftware</dc:creator>
    <dc:date>2017-12-20T15:18:40Z</dc:date>
    <item>
      <title>"Picking entities" mechanic best practice?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801050#M1972</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;I know that I can access the currently selected entities when the user clicks on custom button via Map.GetSelection.&lt;/P&gt;&lt;P&gt;But let's say that I need the user to select a polyline somewhere along the way. Probably even from a wpf window because I need to&amp;nbsp;get some information like length or num vertices from&amp;nbsp;some polyline. Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/385559_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on "From Polyline", he can select a polyline and my code can determine the number of segments of that polyline and the result is displayed in the textbox.&lt;/P&gt;&lt;P&gt;Is that actually possible? And if yes, is there a best practice for doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm basically looking for is a "pick mechanic" just like AutoCAD offers. And since I'm coming from an AutoCAD background, I've been doing this a lot and I figured it should be doable in ArcGIS Pro as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and Best Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801050#M1972</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2017-12-04T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: "Picking entities" mechanic best practice?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801051#M1973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one way to achieve this would be to plug in the existing Pro select tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do take a look at this example&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/HookProCommands" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/HookProCommands"&gt;arcgis-pro-sdk-community-samples/Framework/HookProCommands at master · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801051#M1973</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2017-12-08T20:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: "Picking entities" mechanic best practice?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801052#M1974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Christian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;These are the steps you&amp;nbsp;need to consider&amp;nbsp;for achieving something you requested.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;First, you know need to create a map tool. Second, you need to create a dock pane&amp;nbsp;or anything you want for your UI. Third, you need a way of communication between map tool and your dock pane (there are several options but the one I am using is events) In the map tool OnSketchCompleteAsync we publish the event args in Dock pane we subscribe and update the value of our UI textbox with the number of selected features(in this example I am simply publishing the number of selected segments, you can publish total length or object from map tool). Please&amp;nbsp;make sure you change the layer name inside SelectMapTool.cs file to your desired layer name. I have copied the codes in this repo.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/geohub2017/ArcGIS-Pro-SDK-Examples/tree/master/PublishToolResults"&gt;Publish result of map tool event&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="Update Dockpane with Map tool result" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390416_Select.PNG" style="width: 620px; height: 371px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Nasir&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 23:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801052#M1974</guid>
      <dc:creator>NasirAhmad4</dc:creator>
      <dc:date>2017-12-10T23:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Picking entities" mechanic best practice?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801053#M1975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the link. I'll look into it after I return from the holidays next January.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 15:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801053#M1975</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2017-12-20T15:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: "Picking entities" mechanic best practice?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801054#M1976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nasir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the detailed description. It looks like something I can use! I'll check it out in more detail after I return from the holidays next January.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 15:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-picking-entities-quot-mechanic-best-practice/m-p/801054#M1976</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2017-12-20T15:18:40Z</dc:date>
    </item>
  </channel>
</rss>

