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 6 of 6

Need to Use 2006 Symbols in 2010 Using VBA

This is a discussion on Need to Use 2006 Symbols in 2010 Using VBA within the Development forums, part of the MapPoint Desktop Discussion category; Hello - I would like to use the symbols from MP 2006 in my MP 2010 maps. I have written ...

  1. #1
    BookemDano is offline Junior Member White Belt
    Join Date
    Sep 2013
    Location
    Boca Raton, FL
    Posts
    2

    Need to Use 2006 Symbols in 2010 Using VBA

    Hello - I would like to use the symbols from MP 2006 in my MP 2010 maps. I have written a VBA program which imports several layers and assigns the standard 2010 symbols. However, I prefer the 2006 symbols and would like to use them instead. I have already copied all of the bmp files used in 2006 to a separate directory, but how do I tell MapPoint in VBA to use those symbols instead?

    One last question, if someone is able to help me do this, and I share the map file with someone else, will they see the same symbols or would they have to have the symbols copied to their computer with the same path as mine. In other words, are the symbols saved in the MapPoint file itself?

    Thanks!

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Need to Use 2006 Symbols in 2010 Using VBA

    Hi and welcome to the forums!

    First, yes they are saved in the PTM file.

    (You can also replace the default template with a map with the symbols already embedded so they are always available).

    Where did you get the bmp files from the 2006 version? I think there was a download... is it this?

    Download Pushpin images for Streets and Trips or MapPoint 2009 from Official Microsoft Download Center
    Download Pushpin images from Official Microsoft Download Center

    To import them, you can do it one by one, or use a third-party script to do it.

    There's a simple Excel VBA program which imports all the bmp symbols in a directory included with the Pushpin data set on PushpinCity.com - Welcome to Pushpin City! ? Provider of MapPoint Pushpin Symbol Sets and Tools for Creating and Managing Custom Pushpin Symbols ($19.95).

    To switch to using the new symbols, how you write the program to switch to the new symbols depends on your map. If the symbols are individually set on each Pushpin, you can loop over them and make the change. If they are set on the dataset level, you can loop over the datasets. You'll need to figure out what corresponds to what, either by name or ID. I could help you with this.

    Hope this at least gets you pointed in the right direction!

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    BookemDano is offline Junior Member White Belt
    Join Date
    Sep 2013
    Location
    Boca Raton, FL
    Posts
    2

    Re: Need to Use 2006 Symbols in 2010 Using VBA

    Thanks Eric and thanks for the quick response!

    Honestly, I didn't download the MP06 symbols. A co-worker of mine did. If you want to know how he did it, I can find out.

    That's great news about the imported symbols being saved in the PTM. As a test, I imported one of the symbols I wanted to use and then saved the MP template. My assumption was that (and I thought I read this somewhere) the imported symbol would have the ID number equal to the last standard symbol in MP10 (in my copy it is the "green shopping sign") which is symbol #347 + 1. So, in my code, I use objDataSet.Symbol = 348. This didn't seem to work. Instead of the small yellow box that I was trying to get, I got something that looks like a king's crown. Do you know what I did wrong?

    Thanks again for all of your help!

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Need to Use 2006 Symbols in 2010 Using VBA

    If you have more than 256 "MapPoint 2006" symbols, I definitely want to know where your co-worker got them and please send us a copy. See related thread here

    2006 MapPoint Symbols 297-301 Help!

    To answer your questions, I'd have to play with it, but I think they might start at 0 so maybe if you used objDataSet.Symbol = 347 it would work?


    Can you run a quick loop to enumerate all the symbol names and their ID's? This should help you see what's going on. Something like this:

    Code:
    Sub ListSymbols(MAP As MapPoint.Map)
      Dim sym As MapPoint.Symbols
      For Each sym in MAP.Symbols
        Debug.Print sym.ID, sym.Name
      Next
    End Sub
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Need to Use 2006 Symbols in 2010 Using VBA

    I found the rest of the 336 MapPoint 2006 symbols and posted them in an article I'm working on here --

    Revisiting the Microsoft MapPoint 2006 Pushpin Symbols

    The article demos a script mass-converting all the 2013 symbols to the 2006 equivalents.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  6. #6
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Need to Use 2006 Symbols in 2010 Using VBA

    Quote Originally Posted by BookemDano View Post
    My assumption was that (and I thought I read this somewhere) the imported symbol would have the ID number equal to the last standard symbol in MP10 (in my copy it is the "green shopping sign") which is symbol #347 + 1. So, in my code, I use objDataSet.Symbol = 348. This didn't seem to work. Instead of the small yellow box that I was trying to get, I got something that looks like a king's crown. Do you know what I did wrong?
    When I ran that EnumerateSymbols it looks like that for whatever reason the custom symbol ID's start at around 400. Maybe they just wanted to reserve that space for additional built-in symbols in future versions.
    ~ 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. Removing Symbols MP 2010
    By PeterLeeds in forum Development
    Replies: 3
    Last Post: 02-17-2011, 08:50 AM
  2. Mappoint 2006 vs 2010
    By Diversity in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 05-27-2010, 03:54 AM
  3. Getting 2006 symbols in 2010?
    By Mike A. in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-12-2010, 03:38 PM
  4. symbols from 2006
    By bcookeiv in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-13-2009, 10:46 AM
  5. Having trouble getting symbols to match MapPoint's symbols
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-07-2006, 01:06 PM

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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103