AnsweredAssumed Answered

How do you programatically refresh the Catalog Window in ArcMap

Question asked by Hornbydd Champion on Oct 6, 2013
Latest reply on Oct 7, 2013 by Hornbydd

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.

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.

Currently my VBA test code is:

Public Sub test()     Dim pDockableWindowManager As IDockableWindowManager     Set pDockableWindowManager = Application     Dim sUID As UID     Set sUID = New UID     sUID.Value = "{7F09BEFF-4F85-48A2-A3DC-39430262799E}" 'GxBrowserDockWindow     Dim pDockableWindow As IDockableWindow     Set pDockableWindow = pDockableWindowManager.GetDockableWindow(sUID)     Debug.Print pDockableWindow.Caption ' This returns "Catalog" so I know I have a handle on it     If pDockableWindow.IsVisible Then          ' ??? How to refresh it it?     End If End Sub