If you were Registered and logged in, you could reply and use other advanced thread options
Hello friends,
I am working on ArcGIS 9. I am learning ArcObjects and facing problem
in drawing a circle in ArcMap. My requirement is that through user form
I am getting Lat-Long values and Radius of circle, but it is not able
to draw it. I am pasting my code alongwith my message so that you will
be definitely understand where I am mistaken.
'Following code is pasted in commandbutton_click
'Function to create circle element in arcmap document
Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument
Dim pScreen As IScreenDisplay
Set pScreen = pMxDoc.ActiveView.ScreenDisplay
Dim pCircularArc As IConstructCircularArc
Dim CentrePt As IPoint
Set CentrePt = New Point
CentrePt.PutCoords Val(txtLong.Text), Val(txtLat.Text)
CentrePt.PutCoords 400, 500
CentrePt.X = 400
CentrePt.Y = 500
Set pCircularArc = New CircularArc
pCircularArc.ConstructCircle CentrePt, Val(txtRad.Text), True
pCircularArc.ConstructCircle CentrePt, 50, True
I am working on ArcGIS 9. I am learning ArcObjects and facing problem
in drawing a circle in ArcMap. My requirement is that through user form
I am getting Lat-Long values and Radius of circle, but it is not able
to draw it. I am pasting my code alongwith my message so that you will
be definitely understand where I am mistaken.
'Following code is pasted in commandbutton_click
'Function to create circle element in arcmap document
Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument
Dim pScreen As IScreenDisplay
Set pScreen = pMxDoc.ActiveView.ScreenDisplay
Dim pCircularArc As IConstructCircularArc
Dim CentrePt As IPoint
Set CentrePt = New Point
CentrePt.PutCoords Val(txtLong.Text), Val(txtLat.Text)
CentrePt.PutCoords 400, 500
CentrePt.X = 400
CentrePt.Y = 500
Set pCircularArc = New CircularArc
pCircularArc.ConstructCircle CentrePt, Val(txtRad.Text), True
pCircularArc.ConstructCircle CentrePt, 50, True
- how to draw points in arcmap using arcobjects customization
- Geographic Information Systems (GIS)
- 2005-04-07
- Need a little help
- Garmin GPS
- 2012-02-29
- need fast answer for Haiti
- Garmin GPS
- 2010-01-15
- LYRICS HELP
- Satellite Navigation
- 2009-07-13
- ArcMap mouse events through ArcObjects Java binding?
- Geographic Information Systems (GIS)
- 2005-05-25
- Saving long tracks-need info and help
- Garmin GPS
- 2006-02-22
