GetShellComponent Method


Returns the specified shell component of a solid or shell. Input componentIndex must lie between 0 and ShellComponentCount-1, inclusive. The returned TriangulatedShellComponent should not be modified by the caller.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2013

Syntax

C#
public TriangulatedShellComponent GetShellComponent(
	int componentIndex
)
Visual Basic
Public Function GetShellComponent ( _
	componentIndex As Integer _
) As TriangulatedShellComponent
Visual C++
public:
TriangulatedShellComponent^ GetShellComponent(
	int componentIndex
)

Parameters

componentIndex
Type: SystemInt32
The component index, must be between 0 and ShellComponentCount – 1, inclusive.

Return Value

The component.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Shell component index componentIndex 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 →