pycatia.mec_mod_interfaces.shapes

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.mec_mod_interfaces.shapes.Shapes(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Shapes

The collection of the shapes making up a body.
get_boundary(i_label: str) Boundary

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Func GetBoundary(CATBSTR iLabel) As Boundary

Returns a boundary using its label.

Parameters:

iLabel
Identification of the

Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
Parameters:

i_label (str) –

Return type:

Boundary

item(i_index: cat_variant) Shape

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Func Item(CATVariant iIndex) As Shape

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”)
Parameters:

i_index (cat_variant) –

Return type:

Shape