InsertPolyline2D Method (ISketchManager) Send Feedback
See Also  Example
PolyLine[out]
2D PolyLine
CoordinateDblArray
Array of the x, y coordinates of the 2D PolyLine (see Remarks)
Closed
True to close the 2D PolyLine, false to leave it open
Constructs a 2D PolyLine.

Syntax

Visual Basic 
Function InsertPolyline2D( _
   ByVal CoordinateDblArray As System.Object, _
   ByVal Closed As System.Boolean _
) As PolyLine
C# 
PolyLine InsertPolyline2D( 
   System.object CoordinateDblArray,
   System.bool Closed
)
JavaScript 
InsertPolyline2D( 
   CoordinateDblArray : Array,
   Closed : Boolean
) : dsPolyLine
COM native C++ 
HRESULT InsertPolyline2D( 
   VARIANT CoordinateDblArray,
   VARIANT_BOOL Closed,
   IPolyLine** PolyLine
) 
C++ 
DSRESULT InsertPolyline2D( 
   const dsDoubleArray& CoordinateDblArray,
   bool Closed,
   dsPolyLine** PolyLine
) 

Parameters

CoordinateDblArray
Array of the x, y coordinates of the 2D PolyLine (see Remarks)
Closed
True to close the 2D PolyLine, false to leave it open
PolyLine[out] or Return Value
2D PolyLine

Example

Remarks

The size of CoordinateDblArray is (2 * (Number of 2D PolyLine vertices)). The order of the elements in the array is (x1, y1, x2, y2, ...).

 

See Also

Availability

DraftSight V1R1.1