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

VB and Lines

This is a discussion on VB and Lines within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have placed a series of lines on a map using the addline function. The default color is black, is ...

  1. #1
    Milo is offline Junior Member White Belt
    Join Date
    Oct 2004
    Posts
    10

    VB and Lines

    I have placed a series of lines on a map using the addline function. The default color is black, is there anyway to change this? Also I want to be able to clear the map of the lines, is there a method to do this?

    Many Regards,
    Milo
    =========
    Milo

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Here are some samples that might help.

    Code:
    Set objmap = GetObject(,"MapPoint.Application").ActiveMap
    Set objShapes = objmap.Shapes
    For Each objshape In objShapes
    Select Case objshape.Type
    	Case 9
    	objshape.Line.ForeColor = vbRed
    End select
    next
    This will delete all shapes.
    Code:
    Set objmap = GetObject(,"MapPoint.Application").ActiveMap
    Set objShapes = objmap.Shapes
    For Each objshape In objShapes
    objshape.delete
    next

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Lines
    By TicK in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-16-2005, 05:05 PM
  2. Pushpins and lines
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-02-2005, 03:44 AM
  3. Getting pushpins in front of lines?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-11-2004, 01:48 AM
  4. Contour Lines
    By Anonymous in forum Wish List
    Replies: 2
    Last Post: 06-30-2003, 12:49 AM
  5. Lines as pushpins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 12-02-2002, 10:15 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