Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Selecting a prviously drawn shape 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) |
![]() |
| Tags |
| drawn, prviously, selecting, shape |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |