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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionShapesThe 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 BoundaryReturns a boundary using its label.Parameters:iLabelIdentification of theBoundary object. See Reference.DisplayName.Returns:The retrieved boundary
- Parameters:
i_label (str) –
- Return type:
- 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 ShapeReturns a shape using its index or its name from the Shapescollection.Parameters:iIndexThe index or the name of the shape to retrieve from the collectionof shapes. As a numerics, this index is the rank of the shape in thecollection. The index of the first shape in the collection is 1, and the indexof the last shape isCollection.Count. As a string, it is the name you assigned to the shapeusing the AnyObject.Name property.Returns:The retrieved shapeExample:This example retrieves in ThisShape the third shape, and in ThatShapethe 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: