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