Returns a shape using its index or its name from the Shapes collection.
Parameters:
iIndex
The index or the name of the shape to retrieve from
the collection of shapes.
As a numerics, this index is the rank of the shape
in the collection.
The index of the first shape in the collection is 1, and
the index of the last shape is
This example retrieves in ThisShape the third shape,
and in ThatShape the shape named
MyShape in the shape collection of the active document,
supposed to be a part document.
Set ThisShape = CATIA.ActiveDocument.Shapes.Item(3)
Set ThatShape = CATIA.ActiveDocument.Shapes.Item("MyShape")