Wire.InsertVertex
Description:
Inserts a new vertex before the specified index.
Inserts a new vertex before the specified index.
Remarks:
To add a new vertex to the end of the wire, use AppendVertex(XYZ).
To add a new vertex to the end of the wire, use AppendVertex(XYZ).
public void InsertVertex(
int index,
XYZ vertexPoint
)
-
Int32indexThe index of the vertex to come after this new vertex. Should be between 0 and NumberOfVertices.
-
vertexPointThe point of the new vertex.
-
The index should be between 0 and the number of vertices of the wire. -or- The vertex point cannot be added to the wire because there is already a vertex at this position on the view plane (within tolerance).
-
A non-optional argument was null
-
Can't insert the vertex before the start vertex if the start point connects to one element.