AddLightWeightPolyline Method

Creates a lightweight polyline from a list of vertices.

See Also | Example

Signature

RetVal = object.AddLightWeightPolyline(VerticesList)

Object

ModelSpace Collection, PaperSpace Collection, Block
The object or objects this method applies to.

VerticesList

Variant (array of doubles)
The array of 2D OCS coordinates specifying the vertices of the polyline. At least two points (four elements) are required for constructing a lightweight polyline. The array size must be a multiple of 2.

RetVal

LightweightPolyline object
The newly created LightweightPolyline object.

Remarks

The vertices specify the endpoints for the line segments that make up the polyline. To add an arc segment, first create the polyline with all line segments, and then add a bulge to the individual segments you want to be arcs. To add a bulge value to a segment, use the SetBulge method.

The elevation for the polyline will be set at the current elevation for the layout. Use the ElevationModelspace or ElevationPaperspace property to determine the elevation for the polyline.

Coordinates can be converted to and from the OCS using the TranslateCoordinates method.

 

   Comments?