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

Programmatically going through itinary

This is a discussion on Programmatically going through itinary within the MapPoint Desktop Discussion forums, part of the Map Forums category; After I have calculated my route I show a grid at the side of the mappoint control, the user can ...

  1. #1
    robinary is offline Junior Member White Belt
    Join Date
    Mar 2004
    Posts
    6

    Programmatically going through itinary

    After I have calculated my route I show a grid at the side of the mappoint control, the user can then click on of the calls in the grid & mappoint then zooms in on the call selected in my grid.

    Is it possible to access the directions/itinary panel and programatically position a line in it. IE I want to jump to the line in the panel where is says "Arrive etc" for the waypoint selected.

    any help extremley appreciated

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Programmatically going through itinary

    Hi,

    I'm not sure I understeand the question, but every waypoint in a route has a location property, so you can jump to it. Is this answering your question ?

  3. #3
    robinary is offline Junior Member White Belt
    Join Date
    Mar 2004
    Posts
    6

    Re: Programmatically going through itinary

    I'll try again.

    After I have calculated my route, a map is drawn and an iternary of the route in another pane. I want to be able to programmatically position the itinary on different waybill points. Not the map, but the itinary window.

    /hope this makes sense

  4. #4
    John.Sewell is offline Member Yellow Belt
    Join Date
    Oct 2007
    Posts
    42

    Re: Programmatically going through itinary

    Just posted this for someone else... is this what you want? (not doing what you want to do, but maybe adaptable).

    gobjRoute.Calculate
    For x = 1 To gobjRoute.Directions.Count
    If Left(gobjRoute.Directions.Item(x).Instruction, 10) = "Rest break" Then
    Set oLoc(3) = gobjRoute.Directions.Item(x).Location
    Exit For
    End If
    Next x

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Programmatically going through itinary

    Hi,

    Now I understand it. You can adapt code example from John to loop trough the directions and create the direction window yourself, for example using another form with a listbox on it. Then you have it in control yourself.

  6. #6
    robinary is offline Junior Member White Belt
    Join Date
    Mar 2004
    Posts
    6

    Re: Programmatically going through itinary

    That'll will do it. Many thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to change the pushpin programmatically ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-21-2004, 05:50 AM
  2. 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
  3. Creating Territories programmatically
    By Atul22 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-05-2004, 11:15 AM
  4. Get programmatically the type of roads
    By baltazar in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-19-2004, 06:22 AM
  5. Programmatically creating Territories?
    By jlaretto in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-29-2004, 03:01 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