MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




VB and Lines

This is a discussion on VB and Lines within the MapPoint 2006/2009 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 ...


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 11-17-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 10
Send a message via MSN to Milo Send a message via Yahoo to Milo
VB and Lines

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
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 11-19-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Here are some samples that might help.

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
This will delete all shapes.
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
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
lines


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
Custom Lines TicK MapPoint 2006/2009 Discussion 3 12-16-2005 05:05 PM
Pushpins and lines Anonymous MapPoint 2006/2009 Discussion 1 02-02-2005 03:44 AM
Getting pushpins in front of lines? Anonymous MapPoint 2006/2009 Discussion 1 09-11-2004 01:48 AM
Contour Lines Anonymous Wish List 2 06-30-2003 12:49 AM
Lines as pushpins Anonymous MapPoint 2006/2009 Discussion 6 12-02-2002 10:15 AM


All times are GMT -5. The time now is 12:27 PM.


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