GetSectionByIndex Method


Get the section from the index.

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

Syntax

C#
public MEPSection GetSectionByIndex(
	int index
)
Visual Basic
Public Function GetSectionByIndex ( _
	index As Integer _
) As MEPSection
Visual C++
public:
MEPSection^ GetSectionByIndex(
	int index
)

Parameters

index
Type: SystemInt32
The index of the section in the system.

Return Value

The section.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The section index 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 →