pycatia.mec_mod_interfaces.geometric_elements

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.geometric_elements.GeometricElements(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
GeometricElements

A collection of all geometric elements contained in a part or a
sketch.
Geometric elements are created with the 2D factory for the sketch and with the
3D factory for the part. Geometric elements thus created are then aggregated
either in the sketch or as part of the geometric element
collection.

See also:
Factory2D, HybridShapeFactory
item(i_index: cat_variant) GeometricElement

Note

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

Returns a geometric element using its index or its name from the
GeometricElements collection.

Parameters:

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


AnyObject.Name property.
Returns:
The retrieved geometric element
Example:
This example retrieves the last item in the geometric element
collection.

Set lastCst = cstList.Item(cstList.Count)
Parameters:

i_index (cat_variant) –

Return type:

GeometricElement