All Frameworks  Object Hierarchy  This Framework  Indexes   

Shapes (Collection)

The collection of the shapes making up a body.

Method Index

GetBoundary
Returns a boundary using its label.
Item
Returns a shape using its index or its name from the Shapes collection.

Methods


o Func GetBoundary( iLabel) As
Returns a boundary using its label.
Parameters:
iLabel
Identification of the
Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
o 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
Collection.Count. As a string, it is the name you assigned to the shape using the AnyObject.Name 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")
 

Copyright © 2003, Dassault Systèmes. All rights reserved.