MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Calculate Routes - Suppressing Directions

This is a discussion on Calculate Routes - Suppressing Directions within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; After performing an objRoute.Calculate method on a Control embedded in my VB form, the visual of the route is displayed ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2002
EdB EdB is offline
Member
Green Belt
 
Join Date: Aug 2002
Posts: 56
Calculate Routes - Suppressing Directions

After performing an objRoute.Calculate method on a Control embedded in my VB form, the visual of the route is displayed along with the Directions pane. I have not been able to find a way to either prevent the directions pane from appearing or to close it programmitcally.

Is either possible?

I tried the Directions.Expanded=geoFalse with no luck.

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
  #2 (permalink)  
Old 08-24-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
You need to set the ItineraryVisible property to False.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 09-09-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Can I turn off the visual display of Routes altogether ??

I'm working on a Freight Analysis program using MapPoint embedded in a VB app and I want to use the objRoute.Calculate, objRoute.Distance methods to determine the distance between 2 warehouses using major highways, but I don't want to see anything visually. Is it possible ??

I tried the LockWindow / UnlockWindow idea from another posting and
that did not work. objMap.Distance returns a distance to me without
messing visually with the map, but it only gives me "as the crow-flies" distances.

Thanks,

LES
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 09-09-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
How about having a second MapPoint Control (MappointControl2) on the form that is not visible. Get your location object for the two warehouses, caculate the route and do what you need to do with the result. Your first Control will not be effected visually.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 09-11-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
That was one of my attempts. I can't remember the exact err.description, but it blows. I even tried making it visible and just setting its Z-order to place it exactly behind my main MapPointControl, but to no avail. I don't know if it's related, but I have noticed when I run my VB app with a mp control and run MapPoint, the real .exe simulatneously, that they can occassionally draw on each other's map ??

Another down fall of trying the second control is another instance of Mappoint.exe, the ActiveX control gets kicked off, consuming even more memory.

Thanks for the try,

LES
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

Tags
calculate, directions, routes, suppressing


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
MapPoint and Bad Directions --- SheilaSheila MapPoint 2006/2009 Discussion 2 01-24-2005 12:42 PM
driving directions impala454 MapPoint 2006/2009 Discussion 1 12-11-2004 10:49 AM
objRoute.Calculate method displays directions pane.... Anonymous MapPoint 2006/2009 Discussion 1 07-26-2002 02:52 PM
I need to calculate routes from a single start poi.... Anonymous MapPoint 2006/2009 Discussion 1 06-13-2002 04:51 AM
Can MapPoint 2002 calculate a route and directions.... Anonymous MapPoint 2006/2009 Discussion 1 07-31-2001 07:05 PM


All times are GMT -5. The time now is 09:38 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


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