GetVertexIndex Method


Tri Or Quad Facet Get Vertex Index Method

Returns the index of the specified vertex of this facet (as an index into the external array of vertices in the TriangulationInterface that was used to create the list of TriOrQuadFacets).

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public int GetVertexIndex(
	int index
)

Parameters

index Int32
Index of the desired vertex in this TriOrQuadFacet (between 0 and NumberOfVertices-1, inclusive).

Return Value

Int32
The index of the specified vertex in the external array of vertices (only valid if NumberOfVertices >= 3).
Exceptions
Exception Condition
ArgumentException index is out of range..
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →