I have placed a series of lines on a map using the addline function. The default color is black, is there anyway to change this? Also I want to be able to clear the map of the lines, is there a method to do this?
Many Regards,
Milo
This is a discussion on VB and Lines within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have placed a series of lines on a map using the addline function. The default color is black, is ...
I have placed a series of lines on a map using the addline function. The default color is black, is there anyway to change this? Also I want to be able to clear the map of the lines, is there a method to do this?
Many Regards,
Milo
=========
Milo
Here are some samples that might help.
This will delete all shapes.Code:Set objmap = GetObject(,"MapPoint.Application").ActiveMap Set objShapes = objmap.Shapes For Each objshape In objShapes Select Case objshape.Type Case 9 objshape.Line.ForeColor = vbRed End select next
Code:Set objmap = GetObject(,"MapPoint.Application").ActiveMap Set objShapes = objmap.Shapes For Each objshape In objShapes objshape.delete next
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
There are currently 1 users browsing this thread. (0 members and 1 guests)