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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionBodiesA 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 BodyCreates a new body and adds it to the Bodies collection. This body becomesthe current oneReturns:The created bodyExample:The following example creates a body names NewBody in the bodycollection of the rootPart part in the partDoc part document. NewBody becomesthe current body in partDoc.Set rootPart = partDoc.PartSet NewBody = rootPart.Bodies.Add()
- Return type:
- 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 BodyReturns a body using its index or its name from the Bodiescollection.Parameters:iIndexThe index or the name of the body to retrieve from the collectionof 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 lastbody is Count. As a string, it is the name you assigned to the body using theAnyObject.Name property.Returns:The retrieved bodyExample:This example retrieves in ThisBody the fifth body in the collection andin ThatBody the body named MyBody in the body collection of the partDoc partdocument.Set BodyColl = partDoc.Part.BodiesSet ThisBody = BodyColl.Item(5)Set ThatBody = BodyColl.Item(“MyBody”)
- Parameters:
i_index (cat_variant) –
- Return type: