pycatia.mec_mod_interfaces.bodies

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384

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.bodies.Bodies(collection_com_object)

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Bodies

A collection of all the Body objects contained in the part.
add() Body

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Func Add() As Body

Creates a new body and adds it to the Bodies collection. This body becomes
the current one

Returns:
The created body
Example:
The following example creates a body names NewBody in the body
collection of the rootPart part in the partDoc part document. NewBody becomes
the current body in partDoc.

Set rootPart = partDoc.Part
Set NewBody = rootPart.Bodies.Add()
Return type:

Body

item(i_index: cat_variant) Body

Note

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

Returns a body using its index or its name from the Bodies
collection.

Parameters:

iIndex
The index or the name of the body to retrieve from the collection
of bodies. As a numerics, this index is the rank of the body in the collection.
The index of the first body in the collection is 1, and the index of the last
body is Count. As a string, it is the name you assigned to the body using the


AnyObject.Name property.
Returns:
The retrieved body
Example:
This example retrieves in ThisBody the fifth body in the collection and
in ThatBody the body named MyBody in the body collection of the partDoc part
document.

Set BodyColl = partDoc.Part.Bodies
Set ThisBody = BodyColl.Item(5)
Set ThatBody = BodyColl.Item(“MyBody”)
Parameters:

i_index (cat_variant) –

Return type:

Body