Refreshing the editable layers displayed in 'esriEditor.CreateFeatureDockWin'

Discussion created by sthorntonesri-ireland-ie-esridist Employee on Oct 25, 2012
Hi all,

I am investigating an issue with a custom add-in for ArcMap 10.1.

The add-in is attempting to toggle the visibility of a group layer when the user clicks on a certain button.

On click of this button the TOC reflects the new visibility of the layer as does the active map window.

However, when an edit session is started and the 'Create Feature' window is visible showing the available editable layers (see attached image), if the user then clicks on the toggle button in the add-in then the 'Create Feature' windows list of layers does not get refreshed. If you toggle the visibilty of the group layer in the TOC then the 'Create Feature' window refreshes as expected.

From looking at the ArcObjects API I cannot see a way of updating this window. I have managed to get a handle on an esriEditor.CreateFeatureDockWin object but I haven't come across a way of refreshing its data to reflect the currently visible editable layers. See below for the code I have to get the CreateFeatureDockWin:

var dockableWindowManager = (IDockableWindowManager)application;
var uid = new UIDClass() { Value = "esriEditor.CreateFeatureDockWin" };
IDockableWindow window = dockableWindowManager.GetDockableWindow(uid);

Is there a way to have this window refresh it's contents? Are there other (better) approaches I can take?

Any help with this is greatly appreciated.