MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Drawing scribble on mappoint programmatically

This is a discussion on Drawing scribble on mappoint programmatically within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi i want to draw scribbles on mappoint object by programmatically, i am doing the application in C#. Please help ...


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 07-29-2004
Junior Member
Yellow Belt
 
Join Date: Jul 2004
Posts: 14
Drawing scribble on mappoint programmatically

Hi
i want to draw scribbles on mappoint object by programmatically, i am doing the application in C#. Please help me.
Regards,
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 07-29-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
Hi vidyakulkarni,

The method to use is AddPolyline.. it takes an array of locations as a parameter.

Here's the example from the Help file:

Sub AddPolylineToMap()

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc(1 To 3) As MapPoint.Location

'Set up the application
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True

'Get three locations and zoom in
Set objLoc(1) = objMap.FindResults("Seattle, WA").Item(1)
Set objLoc(2) = objMap.FindResults("Redmond, WA").Item(1)
Set objLoc(3) = objMap.FindResults("Tacoma, WA").Item(1)
Set objMap.Location = objLoc(1)

'Create a polyline by connecting these locations
objMap.Shapes.AddPolyline objLoc

End Sub
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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
drawing, mappoint, programmatically, scribble


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
programmatically create a field for a MapPoint.Dataset? citrix_99301 MapPoint 2006/2009 Discussion 1 03-18-2006 04:27 AM
Drawing in MapPoint 2004 Dingo1 MapPoint 2006/2009 Discussion 4 11-05-2004 03:29 AM
How to save map as *.ptm programmatically in MapPoint? Anonymous MapPoint 2006/2009 Discussion 3 10-07-2004 12:22 PM
Drawing on mappoint object vidyakulkarni MapPoint 2006/2009 Discussion 4 08-05-2004 10:28 AM
How to programmatically connect to MapPoint Extranet Owen MapPoint 2006/2009 Discussion 0 05-09-2003 05:23 PM


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