Is someone able to explain me how to create an Addin Application in Mappoint.
I'm able to create a VB application with Mappoint.OCX, but not able to create a Mappoint Addin.
Thanks a lot , Xav![]()
![]()
This is a discussion on Create Addin application for Mappoint within the MapPoint Desktop Discussion forums, part of the Map Forums category; Is someone able to explain me how to create an Addin Application in Mappoint. I'm able to create a VB ...
Is someone able to explain me how to create an Addin Application in Mappoint.
I'm able to create a VB application with Mappoint.OCX, but not able to create a Mappoint Addin.
Thanks a lot , Xav![]()
![]()
Hi,
you may have to go to http://www.cppfrance.com/code.aspx?ID=19358 and download the zip file. That may solve your problem.
Since you seem to create application with VB, do you know how to query Mappooint to select all cities for a particuliar region or country ?
I wound like to create a function able to select all the cities with a certain population for a particuliar region or country and then calculate the distance beetween each of them.
ie select all cities with more then 10000 people living in Florida
Thank's for the answer
1) From the VB IDE create a new project of type "add-in"
2) In the project tree under the Designers node is a node called connect.
3) Double click on the Connect node which should bring up the AddInDesigner dialog.
4) On the General tab change the scroll up through the contents of the Application dropdown and select "Microsoft Mappoint".
5) If you want your add-in to run automatically when Mappoint is opened then change Initial Load Behaviour to Startup otherwise Select None.
6) Select "Project,References..." from the menu and ensure the tick box for "Microsoft Mappoint x.0 Object Library (???????)" is checked.
7)Select "Project,<MyAddIn> Properties..." and of the dialog that pops up select the Debugging tab. Select the "Start program:" radio button and add the pathname to the Mappoint .EXE file. This will invoke mappoint each time you run your addin form the VB IDE.
Right click on the Connect Node and view source.
9) In the source code remove the references to Office.CommandBarControl as you cannot create custom command bars in Mappoint (2004 might be different).
10) Where VBInstance is of type VBIDE.VBE this need to become Mappoint.Application.
11) Now you can start playing with the API
Hope this proves useful.
PPS. If you have started your AddIn from the VBIDE When you close Mappoint remember to select End from the Run Menu in the VBIDE to enable you to edit your source again.
PPS. Are you using Mappoint 2004?
There are currently 1 users browsing this thread. (0 members and 1 guests)