fandre12345

Topology Toolbar with diferents behavior in arcobjects 10 and 10.1

Discussion created by fandre12345 on May 27, 2013
Latest reply on Jun 12, 2013 by fandre12345
In arcgis 10 when I open Topology ToolBar the button "Error Inspector" it's enabled with below code:

clsTopologyHandler pTopoHandler = new clsTopologyHandler();
if (!pTopoHandler.Validate(true))
{
     ExibeToolBarArcMap(ArcID.Topology_TopologyToolbar, true); // ArcID.Topology_TopologyToolba = {A14E577C-500F-431D-90F5-615E6A08A331}
}


The method ExibeToolBarArcMap is:
       public static void ExibeToolBarArcMap(object ID, bool blnExibe) {
            ICommandBars pCmdBars = null;
            ICommandBar pToolBar = null;

            // Exibe/Oculta Toolbar
            pCmdBars = GISCAFExtension.ESRIApplication.Document.CommandBars;
            var uid = new UIDClass();
            uid.Value = ID.ToString();

            pToolBar = (pCmdBars.Find(uid, false, false) as ICommandBar);
            if (!(pToolBar == null)) {
                if (blnExibe) {
                    pToolBar.Dock(esriDockFlags.esriDockShow, pToolBar);
                } else {
                    pToolBar.Dock(esriDockFlags.esriDockHide, pToolBar);
                }
            }
        }


In arcgis 10.1 when I open de topology ToolBar the button "Error Inspector" it's disabled. Why?

Thx in advance.

Outcomes