RVTDocs.com

Wire.InsertVertex

Method
Description:
Inserts a new vertex before the specified index.
Remarks:
To add a new vertex to the end of the wire, use AppendVertex(XYZ).
Syntax
public void InsertVertex(
	int index,
	XYZ vertexPoint
)
Parameters
Parameter Type Description
index Int32 The index of the vertex to come after this new vertex. Should be between 0 and <a href="a3396437-4d65-df7f-9400-97e5f69c0d0a.htm">NumberOfVertices</a>.
vertexPoint XYZ The point of the new vertex.
Return Value
Exceptions
Exception Condition
ArgumentException 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).
ArgumentNullException A non-optional argument was null
InvalidOperationException Can't insert the vertex before the start vertex if the start point connects to one element.