4

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

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

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.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Oct 6, 2014 at 10:57

1 Answer 1

1

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;
answered Oct 7, 2014 at 5:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.