I’m programming a module for ArcMap (ArcGIS 9.3) in Visual Basic (Visual studio 2005) realizing ITool interface. My task is to link it to ArcMap to reflect an icon on the Tools toolbar. The problem is the procedure of registration itself: ArcMap doesn’t see my module. Also it’s important to say that if the interface ICommand was realized in my module then there won’t be any problems with the registration in ArcMap. But I need interface ITool, so I have such type of problems.
More particularly, I have an instruction of performing the procedure of registration modules in ArcMap like this:
- Create a new ActiveX dll Visual Basic project.
- In the VB project, add reference to ESRI SystemUI, ESRI Framework, ESRI ArcMapUI Libraries.
- Paste this code into a class module.In the Resource Editor in VB, add a bitmap and give it an Id of 101.
- Also add a cursor and give it an Id of 102.
- Compile the project to create the dll.
- In the Customize dialog in ArcMap, click Add from file and navigate to the dll you just created. The custom tool will be added to ArcMap.
- In the Commands panel of the Customize dialog, select MyCustomTools in the Categories list. In the Commands list, select MyTool and drag it to a toolbar.
- Test the tool.
So, step 6 is the main difficulty.
