Can be custom command placed in attribute table window toolbar in ArcMap?

910
2
09-15-2016 11:18 PM
MaxMax2
Occasional Contributor II

Hi!

Is it possible to place custom command on ArcMap's attribute table window toolbar? As far as I understand I need GUID or ProgID of this toolbar in order to find appropriate ICommandItem with ICommandBars.Find method. But I cannot find this ID.

Tags (1)
0 Kudos
2 Replies
KarlHuber
New Contributor III

As far as I understand you have to register your command into the right component category:

        [ComRegisterFunction]
        private static void Reg(string regKey)
        {
             ESRI.ArcGIS.ADF.CATIDs.MxCommands.Register(regKey);
        }

        [ComUnregisterFunction]
        private static void Unreg(string regKey)
        {
             ESRI.ArcGIS.ADF.CATIDs.MxCommands.Unregister(regKey);
        }

Not sure if there exists an appropriate component category in your case, but you may have a look into the ESRI.ArcGIS.ADF.CATIDs namespace, there are a lot of component categories listed. Maybe there's one for the attribute table also...

HTH

0 Kudos
MaxMax2
Occasional Contributor II

Thanks for your reply. But for placing command in specific place (such as toolbar) a developer should use ICommandBars.Find method to find appropriate toolbar or context menu. In order to call this method the identifier (CLSID or ProgID) of the toolbar has to be known. This IDs are published in the ArcMap Ids article, but I cannot find the one for attribute table window toolbar there.

0 Kudos