MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Selecting a prviously drawn shape

This is a discussion on Selecting a prviously drawn shape within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello Everyone. I have been searching for an answer to this question for hours, hopefully someone will have the solution ...


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 03-24-2004
CSG CSG is offline
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 9
Selecting a prviously drawn shape

Hello Everyone.

I have been searching for an answer to this question for hours, hopefully someone will have the solution for me.

I have created a map, selected a location and then created a series of circles 2.5 miles in radius from the location. Each circle(shape) has a name, ie zone1, zone2, zone3 etc. i now wish to be able to select each shape and perform series of searches for that area(shape).

Here is my problem:

I can not figure out how to programaticly refer to the shape and make it the selected shape.

here is the same code:

Dim objmap As MapPoint.map
Set objmap = Forms!csgmAP.csgmAP.ActiveMap
Dim objloc As MapPoint.Location
Dim addy As String
Set objloc = objmap.FindResults(Forms!popplot.Scaddy).Item(1)
Set objPushPin = objmap.AddPushpin(objloc, Forms!popplot.Scaddy)
objPushPin.Name = Forms![popplot]![mapschools].Form![Name]
objPushPin.Note = Forms![popplot]![mapschools].Form![id]
objPushPin.BalloonState = geoDisplayBalloon
objPushPin.symbol = Forms![popplot]![mapschools].Form![symbol]
objPushPin.Highlight = True
Dim objroute As MapPoint.route
Set objroute = objmap.ActiveRoute
objmap.ActiveRoute.Waypoints.Add objloc
objloc.Goto


Dim x As Integer
Dim mapshape As MapPoint.Shape
Dim dblRadSize As Integer
Dim c As Double
x = 50
c = 14872316

' Create circles from 5 to 25 miles
Dim iRad, i As Double
iRad = 25.02
For i = 1 To 5

Set mapshape = objmap.Shapes.AddShape(geoShapeRadius, objloc, iRad, iRad)
mapshape.Line.Weight = 0
mapshape.Name = "Zone" & CStr(i)
mapshape.Line.Visible = True
mapshape.Fill.Visible = True
mapshape.Fill.ForeColor = c
mapshape.ZOrder (geoSendBehindRoads)
mapshape.SizeVisible = True
'creates a unique color for each circle
c = c - (i * 825)
iRad = iRad - 5
MsgBox "Name of shape: " + mapshape.Name
mapshape.Select
Next i

objmap.Altitude = objmap.Altitude * 20


Your help would be very much appreciated

Thanks
Randye
(CSG)
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 03-24-2004
CSG CSG is offline
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 9
previously drawn shape

Doesn't make ya feel silly when you figure it out right after posting the question...


objmap.shapes.Item("zone3").Select


Thanks anyway

Randye
(CSG)
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
drawn, prviously, selecting, shape


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
Does an object reside in my Shape or Shape boundaries? hotrdd MapPoint 2006/2009 Discussion 1 08-04-2005 10:51 PM
Selecting and deleting the push pin Anonymous MapPoint 2006/2009 Discussion 1 02-10-2005 08:01 AM
Selecting cities in drivetime Anonymous MapPoint 2006/2009 Discussion 5 02-02-2005 05:21 PM
Selecting Shape Based on Name Anonymous MapPoint 2006/2009 Discussion 1 09-07-2004 11:01 AM
Selecting pushpins within a shape Anonymous MapPoint 2006/2009 Discussion 1 09-26-2002 09:11 AM


All times are GMT -5. The time now is 01:02 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 55