AddVertexAfter Method (IPolyLine3D) Send Feedback
See Also 
Success[out]
True if a new vertex is inserted, false if not
VertexIndex
Index of the vertex after which you want to insert a new vertex (see Remarks)
X
x coordinate of the new vertex
Y
y coordinate of the new vertex
Z
z coordinate of the new vertex
Adds a vertex to the 3D PolyLine.

Syntax

Visual Basic 
Function AddVertexAfter( _
   ByVal VertexIndex As System.Integer, _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal Z As System.Double _
) As System.Boolean
C# 
System.bool AddVertexAfter( 
   System.int VertexIndex,
   System.double X,
   System.double Y,
   System.double Z
)
JavaScript 
AddVertexAfter( 
   VertexIndex : Number,
   X : Number,
   Y : Number,
   Z : Number
) : Boolean
COM native C++ 
HRESULT AddVertexAfter( 
   LONG VertexIndex,
   DOUBLE X,
   DOUBLE Y,
   DOUBLE Z,
   VARIANT_BOOL* Success
) 
C++ 
DSRESULT AddVertexAfter( 
   long VertexIndex,
   double X,
   double Y,
   double Z,
   bool* Success
) 

Parameters

VertexIndex
Index of the vertex after which you want to insert a new vertex (see Remarks)
X
x coordinate of the new vertex
Y
y coordinate of the new vertex
Z
z coordinate of the new vertex
Success[out] or Return Value
True if a new vertex is inserted, false if not

Remarks

Before calling this method, call IPolyLine3D::GetVerticesCount to determine a valid value for VertexIndex.
 

See Also

Availability

DraftSight V1R1.3