pycatia.mec_mod_interfaces.hybrid_bodies¶
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.hybrid_bodies.HybridBodies(com_object, child_object=<class 'pycatia.mec_mod_interfaces.hybrid_body.HybridBody'>)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionHybridBodiesA collection of the HybridBody objects.- add() HybridBody ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add() As HybridBodyCreates a new hybrid body and adds it to the HybridBodies collection. Thisbody becomes the current oneReturns:The created bodyExample:The following example creates a body named newHybridBody in the hybridbody collection of the rootPart part in the partDoc part document. NewPartBodybecomes the current body in partDoc.Set NewPartBody = rootPart.Bodies.AddPartBody()
- Return type:
- item(i_index: cat_variant) HybridBody ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(CATVariant iIndex) As HybridBodyReturns a body using its index or its name from the Bodiescollection.Parameters:iIndexThe index or the name of the hybrid body to retrieve from thecollection of hybrid bodies. As a numerics, this index is the rank of thehybrid body in the collection. The index of the first hybrid body in thecollection is 1, and the index of the last hybrid body is Count. As a string,it is the name you assigned to the hybrid body using theAnyObject.Name property.Returns:The retrieved hybrid bodyExample:This example retrieves in ThisHybridBody the fifth hybrid body in thecollection and in ThatHybridBody the hybrid body named MyHybridBody in thehybrid body collection of the partDoc part document.Set hybridBodyColl = partDoc.Part.HybridBodiesSet ThisHybridBody = hybridBodyColl.Item(5)Set ThatHybridBody = hybridBodyColl.Item(“MyHybridBody”)
- Parameters:
i_index (cat_variant) –
- Return type: