ArcObjects VB.NET Custom Toolbar:  How to ADD ArcMap tools to Custom Toolbar

859
1
06-08-2010 04:54 PM
RuchiraWelikala
Occasional Contributor
Hi All,
I was wondering if anyone knew how to add the toolbox tool "Make XY Event Layer" to my custom toolbar using VB.NET.
Right now, I have a bunch of tools that in there which are being assigned to the toolbar by their GUID. 
The code below shows how to add current Tools using their GUIDs.  Where would I find more information about the Current ArcMap tool GUIDs?

   Public Sub New()

        '
        'TODO: Define your toolbar here by adding items
        '
        AddItem(New Guid("5ec71862-3712-4b4e-8f31-2e58516eb72f"), 1) 'Wells Update
        AddItem(New Guid("48800627-5d77-4dcf-a648-28d69c826ac2"), 2) 'WellsandInsepectionUpdate
        AddItem(New Guid("65cbc386-c5bf-4677-8073-c986b843a051"), 3) 'Geology Update

        'AddItem("esriArcMapUI.ZoomOutTool")
        'BeginGroup() 'Separator
        'AddItem("{FBF8C3FB-0480-11D2-8D21-080009EE4E51}", 1) 'undo command
        'AddItem(New Guid("FBF8C3FB-0480-11D2-8D21-080009EE4E51"), 2) 'redo command

   End Sub



Thanks in advance!
0 Kudos
1 Reply
ChrisBradberry
Occasional Contributor
Here is the website with the arcmap command guids. 

http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/858a508c-b771-467c-81e6-c6aa72d88f9c.htm

The guids are only for the tools and buttons.  You will have to create a command, and use the geoprocessor function to integrate the "make xy event layer" into a tool that has a guid.  Check out this link:


http://edndoc.esri.com/arcobjects/9.2/NET/0bf044f6-dbcd-4d04-836e-3b5e47204818.htm  (this is 9.2, they probably have it in 9.3)

Chris
0 Kudos