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

Drawing scribble on mappoint programmatically

This is a discussion on Drawing scribble on mappoint programmatically within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi i want to draw scribbles on mappoint object by programmatically, i am doing the application in C#. Please help ...

  1. #1
    vidyakulkarni is offline Junior Member Yellow Belt
    Join Date
    Jul 2004
    Posts
    14

    Drawing scribble on mappoint programmatically

    Hi
    i want to draw scribbles on mappoint object by programmatically, i am doing the application in C#. Please help me.
    Regards,

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

    The method to use is AddPolyline.. it takes an array of locations as a parameter.

    Here's the example from the Help file:

    Sub AddPolylineToMap()

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objLoc(1 To 3) As MapPoint.Location

    'Set up the application
    Set objMap = objApp.ActiveMap
    objApp.Visible = True
    objApp.UserControl = True

    'Get three locations and zoom in
    Set objLoc(1) = objMap.FindResults("Seattle, WA").Item(1)
    Set objLoc(2) = objMap.FindResults("Redmond, WA").Item(1)
    Set objLoc(3) = objMap.FindResults("Tacoma, WA").Item(1)
    Set objMap.Location = objLoc(1)

    'Create a polyline by connecting these locations
    objMap.Shapes.AddPolyline objLoc

    End Sub
    ~ 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. programmatically create a field for a MapPoint.Dataset?
    By citrix_99301 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-18-2006, 04:27 AM
  2. Drawing in MapPoint 2004
    By Dingo1 in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-05-2004, 03:29 AM
  3. How to save map as *.ptm programmatically in MapPoint?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-07-2004, 12:22 PM
  4. Drawing on mappoint object
    By vidyakulkarni in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 08-05-2004, 10:28 AM
  5. How to programmatically connect to MapPoint Extranet
    By Owen in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-09-2003, 05:23 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