MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




how to draw a line between points

This is a discussion on how to draw a line between points within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi everybody, I am totaly new to mappoint and mappoint "programming". I don't know if it is the right place ...


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

Today's Posts Twitter Feed 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 05-24-2006
Junior Member
White Belt
 
Join Date: May 2006
Posts: 1
how to draw a line between points

Hi everybody,
I am totaly new to mappoint and mappoint "programming".
I don't know if it is the right place to post so please excuse me if I am wrong.

Let me explain my problem.
I have a list of locations and I would like to place them on a mappoint map and draw a line between them (just a normal straight line for the beginning).
The list of locations and "routes" can be in either excel, access or sql format and if possible i would like a vba macro to do it.

So is this possible ? and how ?

Thank you very much.

Bob.
PS : If you happen to know any good tutorials about how to use excel and mappoint please be kind enough to post the url.
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 05-25-2006
Member
Green Belt
 
Join Date: Mar 2005
Posts: 97
Hi,

Hope this will help:

1- Looking at the Mappoint HelpFile, you have this example:

Code:
Sub AddLineToMap(FromAddress1, To Address2)

  Dim objApp As New MapPoint.Application
  Dim objMap As MapPoint.Map
  Dim objLoc1 As MapPoint.Location
  Dim objLoc2 As MapPoint.Location

  'Configure l'application
  Set objMap = objApp.ActiveMap
  objApp.Visible = True
  objApp.UserControl = True

  'Obtient deux lieux et les agrandit
  Set objLoc1 = objMap.FindResults(FromAddress1).Item(1)
  Set objLoc2 = objMap.FindResults(ToAddress2).Item(1)
  Set objMap.Location = objLoc1

  'Ajoute un trait reliant les deux lieux
  objMap.Shapes.AddLine objLoc1, objLoc2

  End Sub
2- You have to buy this book, you can find it in the homepage fo this website:

MP2K is pleased to offer MapPoint For Dummies to our North American readers at the lowest price available anywhere.

At $17.48 + $2.50 shipping, that is around $2 cheaper than other major Internet book retailers.

3- Do a search in this forum with keys as "excel", you will find all what you need

Ciao
__________________
Mohamed
www.AtlasCouscous.com
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 05-25-2006
Junior Member
Yellow Belt
 
Join Date: Apr 2006
Posts: 20
I have purchased the O'Reilly book. It arrives next week. If you are going to purchase a book I'll do a review on it if you wish.
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
draw, line, points


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
draw simple line between points Anonymous MapPoint 2006/2009 Discussion 0 07-27-2004 04:15 AM
Points in a straight line Dazzer MapPoint 2006/2009 Discussion 6 05-25-2004 11:27 AM
As I draw a line and then a pushpin on that line, .... Anonymous MapPoint 2006/2009 Discussion 1 07-16-2002 08:35 AM
Hi I have a problem. When i draw a line and the.... Anonymous MapPoint 2006/2009 Discussion 1 07-15-2002 10:06 AM
How do i change the default Line draw width (toolb.... Anonymous MapPoint 2006/2009 Discussion 1 12-26-2001 11:39 AM


All times are GMT -5. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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