<?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: Changing custom tab to active tab on open in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1598610#M12792</link>
    <description>&lt;P&gt;Just one comment, have your considered using a Configuration? Tab visibility and order is one of the main reasons that capability is available/included withArcGIS Pro.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 16:57:25 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2025-03-24T16:57:25Z</dc:date>
    <item>
      <title>Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585077#M12634</link>
      <description>&lt;P&gt;What is the best way to change the active tab to a custom tab when a custom add-in is loaded?&lt;/P&gt;&lt;P&gt;Use case: The custom add-in will be part of a Pro project that is on a server. When the user opens the project, the tab they should see is the custom tab. 99% of operations they will be doing will be through tools on this tab. Since the Pro project is on a server, the add-in will not affect the user’s normal local Pro settings (particularly that the “Map” tab is the first active tab.&lt;/P&gt;&lt;P&gt;I have &amp;lt;insertModule autoLoad="true"&amp;gt; so the module code is running when the project with the add-in opens. I have set the custom tab as the first tab from the left using &amp;lt;tab insert="before" placeWith="esri_mapping_homeTab"&amp;gt;&lt;/P&gt;&lt;P&gt;It seems to work to set the active tab using FrameworkApplication.ActivateTab("my_tab_id"), but I am having trouble finding the event to subscribe to.&lt;/P&gt;&lt;P&gt;I have tried ProjectOpenedEvent.Subscribe(), but the Ribbon does not seem to be initialized when that event fires.&lt;/P&gt;&lt;P&gt;I have also tried ActivePaneInitializedEvent.Subscribe(). Running FrameworkApplication.ActivateTab("my_tab_id") from that event sets the custom tab as active briefly, but eventually another event switches the active tab back to the esri_mapping_homeTab.&lt;/P&gt;&lt;P&gt;I have looked through the other events and am not seeing a better one to subscribe to.&lt;/P&gt;&lt;P&gt;Without running&amp;nbsp;FrameworkApplication.ActivateTab("my_tab_id"), just having the custom tab as the first from the left makes it the active tab for a few seconds before&amp;nbsp;esri_mapping_homeTab becomes active, so maybe there is a way to override the event that changes the active tab to&amp;nbsp;esri_mapping_homeTab?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 18:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585077#M12634</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-02-13T18:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585176#M12638</link>
      <description>&lt;P&gt;I see now that this is happening due to tabs changing based on context. Looking for a way to turn that off or redirect when focus is on a Map to my custom tab instead of the&amp;nbsp;&lt;SPAN&gt;esri_mapping_homeTab...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 21:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585176#M12638</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-02-13T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585488#M12641</link>
      <description>&lt;P&gt;Sort of solved it. Turned off the Map tab in Options | Customize the Ribbon. Without the tab there, whatever event was firing on startup to change the active tab either doesn't fire or fails. Not a great solution to have to hide the map tab from users. Would rather be able to turn off context based tab changes as suggested &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/keep-activated-ribbon-tab-activated-when-switching/idc-p/1585466#M33820" target="_self"&gt;in this ArcGIS Pro Idea&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1585488#M12641</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-02-14T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1595146#M12744</link>
      <description>&lt;P&gt;Solved this by turning off the tabs I don't need in Config.daml using updateModule and deleteTab. The &lt;A href="https://github.com/Esri/arcgis-pro-sdk/tree/master/Examples" target="_self"&gt;examples&lt;/A&gt; are very helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 13:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1595146#M12744</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-03-13T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1598127#M12780</link>
      <description>&lt;P&gt;And the answer is:&amp;nbsp; FrameworkApplication.ActivateTab("My_Custom__Tab"); where the tab name is defined in your config.daml. Note there always has to be an Active tab in Pro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 17:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1598127#M12780</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2025-03-21T17:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing custom tab to active tab on open</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1598610#M12792</link>
      <description>&lt;P&gt;Just one comment, have your considered using a Configuration? Tab visibility and order is one of the main reasons that capability is available/included withArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/changing-custom-tab-to-active-tab-on-open/m-p/1598610#M12792</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2025-03-24T16:57:25Z</dc:date>
    </item>
  </channel>
</rss>

