<?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: How to Access the Selected Table or Feature Class in the Catalog Pane Context Menu (ArcGIS Pro Add-in)? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632753#M13055</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can access them from Catalog pane :&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override void OnClick()
        {
            var catalog = Project.GetCatalogPane();
            var items = catalog.SelectedItems;
            var item = items.OfType&amp;lt;ProGPXItem&amp;gt;().FirstOrDefault();
            if (item == null)
                return;
            MessageBox.Show($"Selected Custom Item: {item.Name}");
        }&lt;/LI-CODE&gt;&lt;P&gt;Change items.OfType object type &amp;lt;T&amp;gt; to your needs or use without &amp;lt;T&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 05:49:08 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-07-14T05:49:08Z</dc:date>
    <item>
      <title>How to Access the Selected Table or Feature Class in the Catalog Pane Context Menu (ArcGIS Pro Add-in)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632727#M13054</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is for ArcGIS Pro&amp;nbsp;add-in development using Csharp .NET.&lt;BR /&gt;What is the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;public, supported way to access the selected or right&lt;/SPAN&gt;&lt;SPAN&gt;-click&lt;/SPAN&gt;&lt;SPAN&gt;ed table or feature class in the Catalog pane&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;from a context menu button&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a public API to retrieve the selected item(s) in the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Catalog pane&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;context&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;menu handler?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Are there any best practices or workarounds for obtaining&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;path or reference to the right-clicked item?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Internal interfaces like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;IC&lt;/SPAN&gt;&lt;SPAN&gt;atalogPane&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;IProjectWindow&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are not accessible—are there alternatives?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Any&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;guidance&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;or&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;code samples would be appreciated. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 23:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632727#M13054</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2025-07-13T23:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access the Selected Table or Feature Class in the Catalog Pane Context Menu (ArcGIS Pro Add-in)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632753#M13055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can access them from Catalog pane :&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override void OnClick()
        {
            var catalog = Project.GetCatalogPane();
            var items = catalog.SelectedItems;
            var item = items.OfType&amp;lt;ProGPXItem&amp;gt;().FirstOrDefault();
            if (item == null)
                return;
            MessageBox.Show($"Selected Custom Item: {item.Name}");
        }&lt;/LI-CODE&gt;&lt;P&gt;Change items.OfType object type &amp;lt;T&amp;gt; to your needs or use without &amp;lt;T&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 05:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632753#M13055</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-07-14T05:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access the Selected Table or Feature Class in the Catalog Pane Context Menu (ArcGIS Pro Add-in)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632983#M13060</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;, that worked nicely&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 23:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-the-selected-table-or-feature-class/m-p/1632983#M13060</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2025-07-14T23:21:12Z</dc:date>
    </item>
  </channel>
</rss>

