Gets the position of an existing vertex.
Namespace: Autodesk.Revit.DB.ElectricalAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic XYZ GetVertex(
int index
)
Public Function GetVertex (
index As Integer
) As XYZ
public:
XYZ^ GetVertex(
int index
)
member GetVertex :
index : int -> XYZ
Parameters
- index Int32
-
The index of the existing vertex. Should be between 0 and NumberOfVertices.
Return Value
XYZ
The position of the vertex.
It is the offset point for the start and end vertex, not the connector point.
If the wire connects to one device, it may have offset; otherwise, the start and end vertex is same as the connector point.
ExceptionsException | Condition |
---|
ArgumentException |
The index should be between 0 and the number of vertices of the wire.
|
See Also