Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Spatial Data Import COM Add-in

This is a discussion on Spatial Data Import COM Add-in within the MapPoint Desktop 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 seem to ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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 MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spatial Data Import COM Add-In Not Installing
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-11-2012, 03:43 PM
  2. More Spatial Data Import Q's
    By cabbage in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-16-2006, 11:47 AM
  3. Spatial data import
    By Les Wilcock in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 05-18-2006, 10:22 AM
  4. Spatial Data Import
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-25-2006, 06:19 AM
  5. Using the Spatial Data Import Com Add-in, I have h....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-25-2001, 06:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83