Split Method (IPolyLine) Send Feedback
See Also 
Result[out]
True if the original 2D PolyLine is split and a new 2D PolyLine is created, false if not
VertexIndex
Index of vertex where to split the 2D PolyLine (see Remarks)
NewPolyline[out]
New 2D PolyLine
Splits the 2D PolyLine at the specified vertex and creates a new 2D PolyLine.

Syntax

Visual Basic 
Function Split( _
   ByVal VertexIndex As System.Integer, _
   ByRef NewPolyline As PolyLine _
) As System.Boolean
C# 
System.bool Split( 
   System.int VertexIndex,
   out PolyLine NewPolyline
)
JavaScript 
Split( 
   VertexIndex : Number
) : {
   NewPolyline : dsPolyLine,
   Result : Boolean
}
COM native C++ 
HRESULT Split( 
   LONG VertexIndex,
   IPolyLine** NewPolyline,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT Split( 
   long VertexIndex,
   dsPolyLine** NewPolyline,
   bool* Result
) 

Parameters

VertexIndex
Index of vertex where to split the 2D PolyLine (see Remarks)
NewPolyline[out]
New 2D PolyLine
Result[out] or Return Value
True if the original 2D PolyLine is split and a new 2D PolyLine is created, false if not

Remarks

Before calling this method, call IPolyLine::GetVeticesCount to get the number of vertices in the 2D PolyLine and to determine a valid value for VertexIndex.
 

See Also

Availability

DraftSight V1R1.1