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 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 →