I am trying to create a polygon and I am having trouble with the IEditSketch3 interface and Geometry IPoint Interface.
Some Relevant code:
When I run this code I get an "Parameters are incorrect" error on the (pEditSketch.AddPoint(point1, True)) line . I don't see how that can be when I have a point and a Boolean value as parameters.
Some Relevant code:
Code:
pEditSketch = editor
point1 = pActiveview.ScreenDisplay.DisplayTransformation.ToMapPoint(arg.X, arg.Y)
Try
pEditSketch.AddPoint(point1, True)
Catch ex As NullReferenceException
End Try]