Community of VE/MapPoint Users and Developers
This is a discussion on Extracting the route sequence within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have created a route of 20 stops - each stop is a customer with its account number. How can ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Extracting the route sequence Thanks. Ivan |
| ||||
|
Use the Waypoints collection. The help file has a pretty good example that should get you started.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
| The following code snippet show how you can iterate through the directions list. Private Sub OKButton_Click() Dim g_oApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objRoute As MapPoint.Route 'Set up the application Set objMap = g_oApp.ActiveMap Set objRoute = objMap.ActiveRoute 'objApp.Visible = True 'objApp.UserControl = True 'Add route stops With objRoute.Waypoints .Add objMap.FindResults("Tacoma, WA").Item(1) .Add objMap.FindAddressResults("16955 SE 38th Street", "Vancouver", "WA").Item(1) End With ' Iterate through the Direction List Dim inx As Integer For inx = 1 To objRoute.Directions.Count MsgBox (objRoute.Directions.Item(inx).Instruction) Next inx objMap.Location.Highlight = True g_oApp.ItineraryVisible = False g_oApp.PaneState = geoPaneNone End Sub
__________________ Sitting still and wishing makes no person great.. The good lord and sent you fishing but you should dig the bait!! |
![]() |
| Tags |
| extracting, route, sequence |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Letting MapPoint choose the waypoint sequence | BobFromBoston | MapPoint 2006/2009 Discussion | 2 | 10-21-2005 08:43 PM |
| Extracting street names from route Instruction | Curt | MapPoint 2006/2009 Discussion | 1 | 08-18-2005 02:56 PM |
| Export to Excel - Sort Sequence | Anonymous | MapPoint 2006/2009 Discussion | 0 | 01-08-2004 07:02 AM |
| sequence of imported data changes | Harv | MapPoint 2006/2009 Discussion | 1 | 05-27-2003 05:09 PM |
| I have been using MapPoint to sequence route stops.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-04-2002 11:31 AM |