<?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 do you programatically refresh the Catalog Window in ArcMap in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611753#M16422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Richard,&lt;BR /&gt;&lt;BR /&gt;Many thanks for your help but I think we are talking about different things? &lt;BR /&gt;&lt;BR /&gt;I'm talking about this window:&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]28077[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;If run the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMXDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMXDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim n As Integer
&amp;nbsp;&amp;nbsp;&amp;nbsp; n = pMXDoc.ContentsViewCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pContentsView&amp;nbsp; As IContentsView
&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To n - 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pContentsView = pMXDoc.ContentsView(i)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pContentsView.Name
&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i
End Sub
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;It displays only the following names (so no catalog window):&lt;BR /&gt;&lt;BR /&gt;Display&lt;BR /&gt;Source&lt;BR /&gt;Visible&lt;BR /&gt;Selection&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source, Display, Visible or Selection are different current view states of the Table of Contents window.&amp;nbsp; This is the correct interface for what you want.&amp;nbsp; Refresh will refresh it after you modify the contents of the window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:10:28 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2021-12-12T02:10:28Z</dc:date>
    <item>
      <title>How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611750#M16419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm stumpted on how one refreshes the Catalog window in ArcMap and I have been unsuccessful in finding any advice or examples in the ArcObjects API help. I am using 10.2 and currently trying to put this simple bit of code together in VBA but ultimately I intend do it in VB .net.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a tool that at some point blitzes a folder but I notice if the catalog window is open and docked in ArcMap this does not automatically get refreshed. So I'm simply trying to refresh the catalog tree in the catalog window which would hopefully show that a folder had been deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently my VBA test code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Public Sub test() &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDockableWindowManager As IDockableWindowManager &amp;nbsp;&amp;nbsp;&amp;nbsp; Set pDockableWindowManager = Application &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sUID As UID &amp;nbsp;&amp;nbsp;&amp;nbsp; Set sUID = New UID &amp;nbsp;&amp;nbsp;&amp;nbsp; sUID.Value = "{7F09BEFF-4F85-48A2-A3DC-39430262799E}" 'GxBrowserDockWindow &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDockableWindow As IDockableWindow &amp;nbsp;&amp;nbsp;&amp;nbsp; Set pDockableWindow = pDockableWindowManager.GetDockableWindow(sUID) &amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pDockableWindow.Caption ' This returns "Catalog" so I know I have a handle on it &amp;nbsp;&amp;nbsp;&amp;nbsp; If pDockableWindow.IsVisible Then &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' ??? How to refresh it it? &amp;nbsp;&amp;nbsp;&amp;nbsp; End If End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 16:58:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611750#M16419</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-10-06T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611751#M16420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You want to access the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//000v0000006q000000"&gt;IContentsView.Refresh&lt;/A&gt;&lt;SPAN&gt; method.&amp;nbsp; It also has a shortcut through the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//000v00000128000000"&gt;IMxDocument.UpdateContents&lt;/A&gt;&lt;SPAN&gt; method, since most applications implement the IMxDocument interface as one of the first steps of drilling into the map.&amp;nbsp; Look at the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/000100000147000000.htm"&gt;Loading a Table example on this help page&lt;/A&gt;&lt;SPAN&gt; for one way to implement the refresh.&amp;nbsp; Same principle applies to removing a layer or table from the map.&amp;nbsp; You can examine the state of the current Table of Contents view through the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//000v0000011m000000"&gt;IMxDocument.CurrentContentsView&lt;/A&gt;&lt;SPAN&gt; method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 17:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611751#M16420</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-06T17:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611752#M16421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your help but I think we are talking about different things? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm talking about this window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28077[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If run the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMXDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMXDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim n As Integer
&amp;nbsp;&amp;nbsp;&amp;nbsp; n = pMXDoc.ContentsViewCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pContentsView&amp;nbsp; As IContentsView
&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To n - 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pContentsView = pMXDoc.ContentsView(i)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pContentsView.Name
&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i
End Sub
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It displays only the following names (so no catalog window):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Display&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Visible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Selection&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611752#M16421</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T02:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611753#M16422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Richard,&lt;BR /&gt;&lt;BR /&gt;Many thanks for your help but I think we are talking about different things? &lt;BR /&gt;&lt;BR /&gt;I'm talking about this window:&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]28077[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;If run the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMXDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMXDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim n As Integer
&amp;nbsp;&amp;nbsp;&amp;nbsp; n = pMXDoc.ContentsViewCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pContentsView&amp;nbsp; As IContentsView
&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To n - 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pContentsView = pMXDoc.ContentsView(i)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pContentsView.Name
&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i
End Sub
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;It displays only the following names (so no catalog window):&lt;BR /&gt;&lt;BR /&gt;Display&lt;BR /&gt;Source&lt;BR /&gt;Visible&lt;BR /&gt;Selection&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source, Display, Visible or Selection are different current view states of the Table of Contents window.&amp;nbsp; This is the correct interface for what you want.&amp;nbsp; Refresh will refresh it after you modify the contents of the window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611753#M16422</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T02:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611754#M16423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Richard,&lt;BR /&gt;&lt;BR /&gt;Many thanks for your help but I think we are talking about different things? &lt;BR /&gt;&lt;BR /&gt;I'm talking about this window:&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]28077[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;If run the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMXDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMXDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim n As Integer
&amp;nbsp;&amp;nbsp;&amp;nbsp; n = pMXDoc.ContentsViewCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pContentsView&amp;nbsp; As IContentsView
&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To n - 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pContentsView = pMXDoc.ContentsView(i)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pContentsView.Name
&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i
End Sub
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;It displays only the following names (so no catalog window):&lt;BR /&gt;&lt;BR /&gt;Display&lt;BR /&gt;Source&lt;BR /&gt;Visible&lt;BR /&gt;Selection&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK.&amp;nbsp; It thought you meant the TOC.&amp;nbsp; I'll look for the Catalog Window Interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would begin by trying the IGx interfaces.&amp;nbsp; They may perform the same actions in the Map Document Catalog tab as they do in the Catalog Application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611754#M16423</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T02:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611755#M16424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a coClass for the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IDockableWindowDef_Interface/0023000000nr000000/" rel="nofollow" target="_blank"&gt;IDockableWindowDef&lt;/A&gt;&lt;SPAN&gt; called &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00150000003m000000" rel="nofollow" target="_blank"&gt;GxBrowserDockWindow&lt;/A&gt;&lt;SPAN&gt; which appears to be equivalent to the Desktop Catalog window (at least it is the closest thing I have found so far).&amp;nbsp; Perhaps once you can get a handle for that browser to one of the IGx interfaces you would manipulate that browser window like you would the ArcCatalog application.&amp;nbsp; Admittedly, there is nothing to make tracing this out easy, so it is all trial and (mostly) error as usual with ArcObjects less used functions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 18:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611755#M16424</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-06T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you programatically refresh the Catalog Window in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611756#M16425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get the tick as you got me "bumbling" around the part of ArcObjects I needed to be looking at. If anyone from ESRI is reading this then you really need to add some guidance to the Help about what exactly is "UserData" on the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IDockableWindow_Interface/0023000000nq000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;IDockableWindow&lt;/A&gt;&lt;SPAN&gt; Interface. There is no indication of what this returns, a simple example of the types of objects returned would help us developers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So... after several hours of banging my head against a brick wall I finally worked out what exactly is returned by "UserData". I was then able to hook into the catalog and refresh the docked window. I supply my VBA code below in the hope that this will save other developers from going crazy but ideally the Help page should be updated with some trivial scenarios to allow the developer to understand what Userdata is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub test()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDockableWindowManager As IDockableWindowManager
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pDockableWindowManager = Application
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sUID As UID
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sUID = New UID
&amp;nbsp;&amp;nbsp;&amp;nbsp; sUID.Value = "{7F09BEFF-4F85-48A2-A3DC-39430262799E}" &lt;SPAN style="color:#008000;"&gt;'GxBrowserDockWindow
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDockableWindow As IDockableWindow
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pDockableWindow = pDockableWindowManager.GetDockableWindow(sUID)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; If pDockableWindow.IsVisible Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' Get Browser
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGXBrowser As IGxBrowser
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGXBrowser = pDockableWindow.UserData
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' Get the Catalog
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGXCatalog As IGxCatalog
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGXCatalog = pGXBrowser.InternalCatalog

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' QI Catalog into GXObject
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGXObject As IGxObject
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGXObject = pGXCatalog
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' QI GxObject into GxObjectContainer
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGxObjectContainer As IGxObjectContainer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObjectContainer = pGXObject
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' Get Gxobjects as an enumerate
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pEnumGxObject As IEnumGxObject
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pEnumGxObject = pGxObjectContainer.Children
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt;' Cycle through objects until we find the Folder Connections, then break out of loop
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pGxObject2 As IGxObject
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObject2 = pEnumGxObject.Next
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While Not pGxObject2 Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If TypeOf pGxObject2 Is IGxFolderConnections Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Do
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObject2 = pEnumGxObject.Next
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:#008000;"&gt; ' Re-point GxObjectContainer to folder connection GxObject and refresh all children GxObjects
&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObjectContainer = pGxObject2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pEnumGxObject = pGxObjectContainer.Children
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObject2 = pEnumGxObject.Next
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While Not pGxObject2 Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGxObject2.Refresh
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pGxObject2 = pEnumGxObject.Next
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
End Sub
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-you-programatically-refresh-the-catalog/m-p/611756#M16425</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T02:10:34Z</dc:date>
    </item>
  </channel>
</rss>

