I want to programatically call AttributeWindow using C# ARCGIS SDK.

UID uidDockWin = new UIDClass();
uidDockWin.Value = "esriEditor.CreateFeatureDockWin";
dockWindow = ArcMap.DockableWindowManager.GetDockableWindow(uidDockWin);

above code works well and call CreateFeatures Window. I tried following for AttributeWindow,

uidDockWin.Value = "esriEditor.AttributeWindow"; AND
uidDockWin.Value = "{44276914-98C1-11D1-8464-0000F875B9C6}";

however my program crashes when i click on Toolbar Add-in button where above code executes in OnClick method.


I was able to achieve results in the following way:

UID uidDockWin = new UID();
uidDockWin.Value = "esriEditor.AttributeWindow";
ESRI.ArcGIS.Editor.AttributeWindow attWin = editor.FindExtension(uidDockWin) as AttributeWindow;
attWin.Visible = true;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.