| Products: ArcView Minimum ArcGIS Release: 9.3 |
How to use:
- Make sure to add a reference to the ESRI DefenseSolutions Object Library.
- Paste the code into VBA.
- Run the function from the Macros dialog.
- Select the GeoPolygonElement graphic and drag it to another location in the map and note how it changes.
NewPoint
pPoint.PutCoords 0, 63
pColl.AddPoint pPoint
pPoint.PutCoords 7, 51
pColl.AddPoint pPoint
pPoint.PutCoords 14, 63
pColl.AddPoint pPoint
pPoint.PutCoords 24, 56
pColl.AddPoint pPoint
pPoint.PutCoords 33, 74
pColl.AddPoint pPoint
pPoint.PutCoords 17, 68
pColl.AddPoint pPointSetpPoly = pColl
pPoly.CloseNewGeoPolygon
pGeoPoly.Polygon = pPoly'geodesy geometry type for the line segments comprising the GeoPolygon.
pGeoPoly.SpecialGeolineType = cjmtkSGTGeodesicNewGeoPolygonElement
pElement.Geometry = pGeoPolySetpGraph = pView.GraphicsContainer
pGraph.AddElement pElement, 0
pView.RefreshEnd Sub