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

Symbol.Add

This is a discussion on Symbol.Add within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I have a probleme. I create a Class (into DLL) to manage my ICONS, i load 25 icon and ...

  1. #1
    stevet is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    7

    Unhappy Symbol.Add

    Hello,

    I have a probleme. I create a Class (into DLL) to manage my ICONS, i load 25 icon and i change color for each, i have 32 differents colors (800 icons total) and i modify some part of each icon (8 differents modification) for grand total of 6400 icons. I don't need all icon on same time, depend the configuration for each report. I use 4 parameter for my class and return a StdPicture as objet. My question is : It is possible TO ADD this image to the SYMBOL without writing the image on the disc ?

    Comments or idea will be appreciated

    Best Regards

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

    Re: Symbol.Add

    Good question.

    I really don't think so.. the Add method for symbols requires it to read from a file, see below.

    One trick to add a symbol is to paste a dataset in from another instance of MapPoint that is using that custom symbol, in this way the custom symbol follows along and gets pasted in as well. I've used this before when I have a custom symbols in a ptm I want to get into another map. ( It's easier than say doing a screenshot, cropping to the precise pixel size, etc. and saving the image to disk. ) However, I don't think this would be a good solution for you ? but just thought I'd mention it as it's the only other way I know of to add a custom symbol to a map and in the process the .bmp or image never exists as a file on the disk.

    Syntax

    object.Add(FileName)

    Parameters

    Part Description
    object Required. An expression that returns a Symbols collection.
    FileName Required String. The name of the file that contains the symbol you want to add.

  3. #3
    stevet is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    7

    Re: Symbol.Add

    Thank you Eric, of your assistance. I put the question because I not enough work with Dataset, and I prefer ask the question before reinventing the wheel

    I scan and generate a file for each icon used in the report and if the icon is already adds in the Dataset I jump to the next. it's rather fast and seems stable

    Best Regards

    Steve

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to call symbol by name rather than ID.
    By PMACAFEE in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-30-2006, 11:12 PM
  2. symbol
    By Anonymous in forum General Chat
    Replies: 6
    Last Post: 04-25-2006, 03:56 PM
  3. I need to use my own JPG image as a symbol
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-11-2006, 08:32 AM
  4. set pushpin symbol
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-19-2003, 04:27 PM
  5. Is there a way to use a different pushpin symbol w....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-01-2001, 08:59 AM

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 84 85 86 87 88 89 90 91 92 93 94 95 96