MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Spatial Data Import COM Add-in

This is a discussion on Spatial Data Import COM Add-in within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm trying to access the Spatial Data Import COM Add-in from within my own vb application. I cannot ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-02-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Spatial Data Import COM Add-in

I'm trying to access the Spatial Data Import COM Add-in from within my own vb application. I cannot seem to communicate with the COM addin.

Here is the below code i have tried:

Private Declare Sub MyDisplay Lib "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\AddIns\SpatialDataImportCode \SpatialDataImport.dll" Alias "Display" (omMap As Map, oConnect As Connect)

Call MyDisplay

The above code gives an error saying it cannot find the entry ("Display") point for the dll.

-------------------------------------------------------------------------
I have also tried:

Set oAddIns = oApp.AddIns

Set oMyAddIn = oAddIns.Connect("SpatialDataImport.Connect")
oMyAddIn.Display

But, it also dies saying that the object does not support the "Display" Method.

From what I can tell, the Display method is the only public function in the spatial data import code.

I CAN get the add in to work, if I do this manually through the actuall Microsoft Mappoint application. Tools -> Com Add-ins... and i can then load my esri file, but I cannot automate the process in my own VB application with the mappoint control.

Anyone have any ideas - my last idea would be to just do it manually, but then I cannot get the "File, Edit, View..." Toolbar to display - only the toolbars below it.

Any Ideas?

Thanks,

Jamey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-02-2003
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,210
Blog Entries: 1
I've included components of the Spatial Data Import Add-in in other projects.. you essentially have to delve into the code and find the parts that do the work of parsing the mif/mid or shape file and insert that into your VB app. If you only have a single type of object (polygons for instance) the required lines of code can be very straightforward.

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
More Spatial Data Import Q's cabbage MapPoint 2006/2009 Discussion 2 06-16-2006 11:47 AM
Spatial data import Les Wilcock MapPoint 2006/2009 Discussion 5 05-18-2006 10:22 AM
Spatial Data Import Dazzer MapPoint 2006/2009 Discussion 2 04-25-2006 06:19 AM
Spatial Data Import COM Add-In Not Installing Anonymous MapPoint 2006/2009 Discussion 1 08-05-2005 02:44 AM
Using the Spatial Data Import Com Add-in, I have h.... Anonymous MapPoint 2006/2009 Discussion 1 10-25-2001 06:05 PM


All times are GMT -5. The time now is 05:58 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Flights from Edinburgh
Book flights from Edinburgh to exotic destinations all over the globe. Holiday Hypermarket will search for the latest great deals, so you don't have to.

Portugal Holidays
Find great Portugal Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Portugal.

Holidays Italy
Book your holidays in Italy. Italy has a great climate and the beaches to go with it. Book a great deal for great value online at dealchecker.co.uk.

Antigua Holidays
We have the most popular Antigua holidays at highly competitive prices at The Holiday Place. Book a break in sunny Antigua today.

Portugal
As well as providing some great weather Portugal has much to offer culturally. There are numerous museums, monuments and places of historical interest to explore. Despite the rich history there is a buzzing nightlife and great shopping too.

Travel
Before making a choice regarding travel, check out the amazing variety of options on Travel.co.uk.

Gran Canaria Holidays
Visit the Canary Islands! See information on Gran Canaria holidays at On The Beach!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47