Shapes (Object)

The collection of the shapes making up a body.

Methods


Func GetBoundary( iLabel) As
Returns a boundary using its label.
Parameters:
iLabel
Identification of the object. See .
Returns:
The retrieved boundary
Func Item( iIndex) As
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 . As a string, it is the name you assigned to the shape using the property.
Returns:
The retrieved shape
Example:
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")