2027 Method
Changes 0
M

Wire.SetVertex

Description:
Sets the position of a given vertex. If the vertex is start or end point, and the wire connects to electrical device, the wire end offset will be set according to the given vertex.
public void SetVertex(
	int index,
	XYZ vertexPoint
)
  • Int32
    index
    The index of the existing vertex. Should be between 0 and NumberOfVertices.
  • vertexPoint
    The new position for the 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 set the vertex when the vertex is start or end point and the wire connects to other wire.