Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

IEditSketch help

$
0
0
I am trying to create a polygon and I am having trouble with the IEditSketch3 interface and Geometry IPoint Interface.


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]

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.

Viewing all articles
Browse latest Browse all 1374

Trending Articles