MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Programmatically going through itinary

This is a discussion on Programmatically going through itinary within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-17-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-27-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-28-2007
Junior Member
Yellow Belt
 
Join Date: Oct 2007
Posts: 22
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 11-29-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-01-2007
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 6
Re: Programmatically going through itinary

That'll will do it. Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to change the pushpin programmatically ? Anonymous MapPoint 2006/2009 Discussion 4 12-21-2004 04:50 AM
How to save map as *.ptm programmatically in MapPoint? Anonymous MapPoint 2006/2009 Discussion 3 10-07-2004 11:22 AM
Creating Territories programmatically Atul22 MapPoint 2006/2009 Discussion 3 10-05-2004 10:15 AM
Get programmatically the type of roads baltazar MapPoint 2006/2009 Discussion 0 03-19-2004 05:22 AM
Programmatically creating Territories? jlaretto MapPoint 2006/2009 Discussion 1 01-29-2004 02:01 AM


All times are GMT -5. The time now is 12:35 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights to Lisbon
Experience the amazing sight of the Lisbon Coast yourself. Pick from a selection of cheap flights to Lisbon on Holiday Hypermarket.

Cyprus Weather
Check out Cyprus Weather - Travel Counsellors details information on Cyprus including, weather, flights and accommodation.

Flight
When looking to jet set off, make sure you check out dealchecker.co.uk before you check in anywhere else. Bag a bargain flight from all major scheduled and charter airlines.

Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!

Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.

Cheap holiday comparison
Travel.co.uk is a comparison service which makes it easy to search and find your cheap holiday options.

Holidays to Lanzarote
Not been to the Canary Islands yet? What are you waiting for! Get information on holidays to Lanzarote at On The Beach.


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