Friday 27 July 2018

arcgis 10.0 - How can I programmatically display the "Create Features" dockable window in ArcMap 10?


When I start editing in ArcMap 10, by default the "Create Features" window is automatically opened and docked. Stopping the edit session hides this window.


When I use the IEditor:StartEditing method this does not display the "Create Features" window however if it is already displayed the IEditor:StopEditing method hides it.


How can I Start Editing programmatically and display the "Create Features" window?


alt text



Answer



This should do the trick (C#):


  var dockableWindowManager = (IDockableWindowManager)_app; // _app is an IApplication reference
var uid = new UIDClass() { Value = "esriEditor.CreateFeatureDockWin" };
var window = dockableWindowManager.GetDockableWindow(uid);

window.Show(true);

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...