AddVertex Method

Adds a vertex to a lightweight polyline or a section.

See Also | Example

Signature

object.AddVertex Index, Point

Object

LightweightPolyline, Section
The object or objects this method applies to.

Index

Integer; input-only
The index in the array of vertices where the vertex is to be added. Index must be a positive integer. The first element of the array is index 0.

Point

Variant (three-element array of doubles); input-only
The 3D OCS coordinates at which to create the new vertex.

Remarks

For lightweight polylines, the vertex specifies the endpoint for a new line segment. To add an arc segment to a lightweight polyline, first create the line segment, and then add a "bulge" to the individual segment that is to become an arc. To add a bulge value to a segment, use the SetBulge method.

For sections, the vertex specifies a point on the section line.

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

 

   Comments?