cgraf1

IEditSketch help

Discussion created by cgraf1 on Jun 4, 2013
Latest reply on Jun 10, 2013 by Hornbydd
I am trying to create a polygon and I am having trouble with the IEditSketch3 interface and Geometry IPoint Interface.


Some Relevant 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.

Outcomes