<?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: Programatically open georeferencing tab, read georeferencing tool data on completion in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823312#M2923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Uma for the reply.&amp;nbsp; &amp;nbsp;It turn out that the georeferencing tab was getting activated,&amp;nbsp;but there was a setting that we had to change to make it appear:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;FrameworkApplication.IsRibbonMinimized = false;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The code didn't look like anything was happening until this changed.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The main outstanding question on this topic is - When running tools that are built into pro, such as georeferencing tools - is it possibly to use the SDK to read what the tool is doing, and alter its behaviour during execution?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I see the samples showing how to call a custom tool, and even calling some commands right after the command is executed,&amp;nbsp;but I don't see examples for digging into&amp;nbsp;InformationOverlayViewModel Class as an example to read the data / trigger additional logic.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you again for the reply.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2020 23:10:05 GMT</pubDate>
    <dc:creator>RoyJackson2</dc:creator>
    <dc:date>2020-06-08T23:10:05Z</dc:date>
    <item>
      <title>Programatically open georeferencing tab, read georeferencing tool data on completion</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823309#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;am&amp;nbsp;developing a tool to assist GIS Techs in the process of georeferencing thousands of scanned maps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; add the .tiff to the map with a button click (done)&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; open the georeferencing toolbar automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below doesnt seem to do anything.&amp;nbsp; &amp;nbsp;I cannot get any tab /ribbon to activate with this code.&amp;nbsp; &amp;nbsp;Is there a different way of achieving this?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FrameworkApplication.ActivateTab("esri_mapping_georeference_GeoreferenceTab");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; execute the command&amp;nbsp; "esri_mapping_georeferenceing_StartSessionButton"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code below&lt;/SPAN&gt;&amp;nbsp;does not seem to run.&amp;nbsp; &amp;nbsp;CanExecute is returning False.&amp;nbsp; &amp;nbsp;But, when I try different commands&amp;nbsp;such as&amp;nbsp;esri_mapping_georeference_MoveButton, Command.Execute doesn't do anything.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var commandId = @"esri_mapping_georeferenceing_StartSessionButton";&lt;BR /&gt; // get the ICommand interface from the ArcGIS Pro Button&lt;BR /&gt; // using command's plug-in wrapper&lt;BR /&gt; var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;&lt;BR /&gt; if (iCommand != null)&lt;BR /&gt; {&lt;BR /&gt; // Let ArcGIS Pro do the work for us&lt;BR /&gt; if (iCommand.CanExecute(null)) iCommand.Execute(null);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I programatically execute built in commands in the georeferencing area?&amp;nbsp; &amp;nbsp; I read a different post that says sometimes you may have to activate a parent item before the child is accessible.&amp;nbsp; If that is true, how do I determine what the parents are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; &amp;nbsp;After the&amp;nbsp; user does the georeferencing, I want to read the data from the georeferencing tool window (such as rotation, origin coordinates, scale).&amp;nbsp; Is this possible to hook into the built in tools to control them / read their data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for any assistance.&amp;nbsp; &amp;nbsp;I am trying lots of things and reading all I can find but I am missing something as I can't get anything to run.&amp;nbsp; &amp;nbsp;New to Pro, familiar with ArcObjects and WPF.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relevant daml ids:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name: Selected map has an active georeferencing edit session.&lt;BR /&gt;ID: esri_mapping_SceneGeoreferenceCondition&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name: Close Georeference&lt;BR /&gt;ID: esri_mapping_georeference_CloseSessionButton&lt;BR /&gt;Name: Elevate To Ground&lt;BR /&gt;ID: esri_mapping_georeference_ElevateToGroundButton&lt;BR /&gt; Name: Import&lt;BR /&gt;ID: esri_mapping_georeference_LoadControlPointsButton&lt;BR /&gt;Name: Move To Display&lt;BR /&gt;ID: esri_mapping_georeference_MoveToDisplayButton&lt;BR /&gt; Name: Reset&lt;BR /&gt;ID: esri_mapping_georeference_ResetButton&lt;BR /&gt; Name: Save As New&lt;BR /&gt;ID: esri_mapping_georeference_SaveAsButton&lt;BR /&gt; Name: Save&lt;BR /&gt;ID: esri_mapping_georeference_SaveButton&lt;BR /&gt; Name: Save To Workspace&lt;BR /&gt;ID: esri_mapping_georeference_SaveToWorkspaceButton&lt;BR /&gt; Name: Georeference&lt;BR /&gt;ID: esri_mapping_georeferenceing_StartSessionButton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name: Move&lt;BR /&gt;ID: esri_mapping_georeference_MoveButton&lt;BR /&gt; Name: Rotate&lt;BR /&gt;ID: esri_mapping_georeference_RotateButton&lt;BR /&gt; Name: Scale&lt;BR /&gt;ID: esri_mapping_georeference_ScaleButton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 18:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823309#M2920</guid>
      <dc:creator>RoyJackson2</dc:creator>
      <dc:date>2020-06-05T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically open georeferencing tab, read georeferencing tool data on completion</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823310#M2921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a discovery on item 3 regarding the inability to execute existing tools on the ribbons.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the DAML ids,&amp;nbsp;using the DAML id generator and the SDK documentation, I had ids:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri_mapping_georeferenceing_StartSessionButton&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;esri_mapping_georeference_MoveToDisplayButton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These do nothing when called.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use the 3rd option for DAML ids,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;Use the "&lt;/SPAN&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/get-started/customize-the-ribbon.htm#ESRI_SECTION1_DBA13BD852CF4974849CC1B5AB85FF7F" rel="noreferrer noopener" style="font-size: 16px;" tabindex="-1" target="_blank" title="http://pro.arcgis.com/en/pro-app/get-started/customize-the-ribbon.htm#esri_section1_dba13bd852cf4974849cc1b5ab85ff7f"&gt;Show command IDs on ScreenTips&lt;/A&gt;&lt;SPAN style="font-size: 16px;"&gt;" option in the "&lt;/SPAN&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/get-started/customize-the-ribbon.htm" rel="noreferrer noopener" style="font-size: 16px;" tabindex="-1" target="_blank" title="http://pro.arcgis.com/en/pro-app/get-started/customize-the-ribbon.htm"&gt;Customize the ribbon options&lt;/A&gt;&lt;SPAN style="font-size: 16px;"&gt;" dialog within ArcGIS Pro to view the Ids on the tooltip of each command.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;Magically I now see different DAML ids in pro, such as :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;esri_datasourcesraster_georefStartButton&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;esri_datasourcesraster_georefFitToDisplayButton&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;These do work, and I can call the existing tools.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;Does anyone have an explanation for what DAML ids go where, and how I would have ever figured out the correct DAML ids for my use case?&amp;nbsp; &amp;nbsp;If I google these new DAML ids, there are zero results.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;On item #2, I can call the tools, but I cannot activate the tab.&amp;nbsp; &amp;nbsp;The georeferencing tab is not listed in the DAML id registration files.&amp;nbsp; Neither of these commands work:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;ProApp.ActivateTab("esri_datasourcesraster_imageryCoreTab");&lt;BR /&gt; ProApp.ActivateTab("esri_datasourcesraster_georefModalTab");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 16px;"&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 15:47:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823310#M2921</guid>
      <dc:creator>RoyJackson2</dc:creator>
      <dc:date>2020-06-08T15:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically open georeferencing tab, read georeferencing tool data on completion</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823311#M2922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy&lt;/P&gt;&lt;P&gt;Have you tried selecting your tiff layer&amp;nbsp;on the TOC (contents pane) before trying to activate the Georeference tab?&lt;/P&gt;&lt;P&gt;You can activate a layer in the TOC programmatically using the SelectLayer method on the MapView.&lt;/P&gt;&lt;P&gt;Here is the API Reference topic on this method. There is a code snippet in this topic:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic11993.html"&gt;SelectLayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pro is contextual, so the Georeference tab will only be displayed if the selected layer in the TOC is a raster layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding DAML Ids for buttons and tools, I find that using the "Show command IDs on Screen Tips" option is the most convenient way.&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>Mon, 08 Jun 2020 17:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823311#M2922</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-06-08T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically open georeferencing tab, read georeferencing tool data on completion</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823312#M2923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Uma for the reply.&amp;nbsp; &amp;nbsp;It turn out that the georeferencing tab was getting activated,&amp;nbsp;but there was a setting that we had to change to make it appear:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;FrameworkApplication.IsRibbonMinimized = false;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The code didn't look like anything was happening until this changed.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The main outstanding question on this topic is - When running tools that are built into pro, such as georeferencing tools - is it possibly to use the SDK to read what the tool is doing, and alter its behaviour during execution?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I see the samples showing how to call a custom tool, and even calling some commands right after the command is executed,&amp;nbsp;but I don't see examples for digging into&amp;nbsp;InformationOverlayViewModel Class as an example to read the data / trigger additional logic.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you again for the reply.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 23:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823312#M2923</guid>
      <dc:creator>RoyJackson2</dc:creator>
      <dc:date>2020-06-08T23:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically open georeferencing tab, read georeferencing tool data on completion</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823313#M2924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,The existing Pro tools cannot be modified - But using the Pro SDK and the public API, you can make your own tools though.&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>Tue, 09 Jun 2020 21:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-open-georeferencing-tab-read/m-p/823313#M2924</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-06-09T21:04:20Z</dc:date>
    </item>
  </channel>
</rss>

