<?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 enable two Map tools at same time using ArcGIS PRO SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061245#M6607</link>
    <description>&lt;P&gt;We are working on a project using ArcGIS Pro SDK. The following is the problem statement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User wishes to enable two map tools at same time, for example if user clicks on first tool, then another tool should be enabled as shown in the attached screenshot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is already implemented in ArcMap and it is working.&lt;/P&gt;&lt;P&gt;Your inputs/ideas are most appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sudhansuMishra_2-1621923176440.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14070iF41B20891E5D6F54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sudhansuMishra_2-1621923176440.png" alt="sudhansuMishra_2-1621923176440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Pic.1 ArcGISPro&lt;/P&gt;&lt;P&gt;User selected "Modify Annotation Tool”, now user wants to enable "Point Rotate Tool" automatically&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sudhansuMishra_3-1621923543293.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14072i0E69C85D94C39A5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sudhansuMishra_3-1621923543293.png" alt="sudhansuMishra_3-1621923543293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Pic.2 ArcMap&lt;/P&gt;&lt;P&gt;Working functionality in ArcMap.&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 06:20:37 GMT</pubDate>
    <dc:creator>sudhansuMishra</dc:creator>
    <dc:date>2021-05-25T06:20:37Z</dc:date>
    <item>
      <title>How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061245#M6607</link>
      <description>&lt;P&gt;We are working on a project using ArcGIS Pro SDK. The following is the problem statement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User wishes to enable two map tools at same time, for example if user clicks on first tool, then another tool should be enabled as shown in the attached screenshot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is already implemented in ArcMap and it is working.&lt;/P&gt;&lt;P&gt;Your inputs/ideas are most appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sudhansuMishra_2-1621923176440.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14070iF41B20891E5D6F54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sudhansuMishra_2-1621923176440.png" alt="sudhansuMishra_2-1621923176440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Pic.1 ArcGISPro&lt;/P&gt;&lt;P&gt;User selected "Modify Annotation Tool”, now user wants to enable "Point Rotate Tool" automatically&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sudhansuMishra_3-1621923543293.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14072i0E69C85D94C39A5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sudhansuMishra_3-1621923543293.png" alt="sudhansuMishra_3-1621923543293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Pic.2 ArcMap&lt;/P&gt;&lt;P&gt;Working functionality in ArcMap.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 06:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061245#M6607</guid>
      <dc:creator>sudhansuMishra</dc:creator>
      <dc:date>2021-05-25T06:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061656#M6610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create your own conditions in daml following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/manage-the-pro-ui-with-conditions/" target="_self"&gt;https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/manage-the-pro-ui-with-conditions/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 05:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061656#M6610</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-05-26T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061845#M6612</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;Thank you for replying,&lt;/P&gt;&lt;P&gt;We tried your suggestion but it is not fulfill&amp;nbsp;our requirement.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 May 2021 15:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061845#M6612</guid>
      <dc:creator>sudhansuMishra</dc:creator>
      <dc:date>2021-05-26T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061847#M6613</link>
      <description>&lt;P&gt;There's an example of a custom condition and the daml configuration at the bottom of the following thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/contextmenudatacontext-is-null-with-module-canclick-handler/td-p/774747" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/contextmenudatacontext-is-null-with-module-canclick-handler/td-p/774747&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061847#M6613</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-26T15:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061894#M6614</link>
      <description>&lt;P&gt;You can try to change the image of button to indicate that it is active/inactive based on the required condition(for Appearance purpose and in the backend you have to implement your logic to accomplish the functionality) .&lt;/P&gt;&lt;P&gt;Code snippet is given below for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;internal class btnViewConfig : Button
    {
        protected override void OnClick()
        {
            this.SmallImage = new BitmapImage(new Uri("pack://application:,,,/YourAssemblyName;component/Resources/Activated.png"));
            this.LargeImage = new BitmapImage(new Uri("pack://application:,,,/YourAssemblyName;component/Resources/Activated.png"));
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 04:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1061894#M6614</guid>
      <dc:creator>DharmaRajan</dc:creator>
      <dc:date>2021-05-27T04:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1062079#M6616</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Neither ArcGIS Pro nor the Pro SDK support activating two tools at the same time.&amp;nbsp; If you write your own tools you can 're-use' a tool from OnSketchComplete of another tool.&amp;nbsp; I attached a sample project to demonstrate this pattern.&amp;nbsp; The attached add-in contains two tools: the 'Line Anno' tool which allows to draw a line and places an annotation feature and the 'Draw line' tool that creates line feature and then uses the 'Line Anno' tool code to create the annotation feature attached to the line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When i use the 'Line Anno' tool the add-in places an annotation feature:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1622065152009.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14277i646A5FA39D3C920A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1622065152009.png" alt="Wolf_0-1622065152009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then I use the 'Draw Line' tool to draw a line, which is used to create a new line feature, but once the line feature has been created the code of the 'Line Anno' is called with the same geometry:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1622065275663.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14279iBD8450BB3210E203/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1622065275663.png" alt="Wolf_1-1622065275663.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the SampleAnno.ppkx to test the add-in and all source code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 21:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1062079#M6616</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-05-26T21:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable two Map tools at same time using ArcGIS PRO SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1065522#M6684</link>
      <description>&lt;P&gt;Thank you for replying wolf&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 05:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-enable-two-map-tools-at-same-time-using/m-p/1065522#M6684</guid>
      <dc:creator>sudhansuMishra</dc:creator>
      <dc:date>2021-06-07T05:59:33Z</dc:date>
    </item>
  </channel>
</rss>

