GetTriangle Method


Triangulated Shell Component Get Triangle Method

Returns the triangle corresponding to the given index.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public TriangleInShellComponent GetTriangle(
	int triangleIndex
)

Parameters

triangleIndex Int32
The index of the triangle (between 0 and TriangleCount-1, inclusive).

Return Value

TriangleInShellComponent
The triangle.
Exceptions
Exception Condition
ArgumentException triangleIndex is out of range.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →