This document is archived and information here might be outdated. Recommended version. |
Adds a point to the edit sketch. If allowUndo is true, a new operation will be created.
[Visual Basic .NET] Public Sub AddPoint ( _ ByVal point As IPoint, _ ByVal allowUndo As Boolean _ )
[C#] public void AddPoint ( IPoint point, bool allowUndo );
[C++]
HRESULT AddPoint(
IPoint* point,
VARIANT_BOOL allowUndo
);
[C++] Parameters point [in]
point is a parameter of type IPoint* allowUndo [in]
allowUndo is a parameter of type bool
Use the AddPoint method to add a point to the geometry held in the edit sketch. The point parameter specifies the next point in the sketch. In all cases, new segments are added linking the edit sketch to the provided point, except where the geometry type is set to Point or the point represents the very first point in the edit sketch.
This method fires the IEngineEditEvents::OnVertexAdded, IEngineEditEvents::OnSketchModified and IEngineEditEvents::OnAfterDrawSketch events.