GetItem Method


Gets the item stored in the RebarContainer at the associated index.

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

Syntax

C#
public RebarContainerItem GetItem(
	int itemIndex
)
Visual Basic
Public Function GetItem ( _
	itemIndex As Integer _
) As RebarContainerItem
Visual C++
public:
RebarContainerItem^ GetItem(
	int itemIndex
)

Parameters

itemIndex
Type: SystemInt32
Item index in the Rebar Container

Return Value

Rebar Container Item

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The item index is either less than 0 or graeter than or equal to number of items in this Rebar Container element.

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 →