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:
- ,
Methods
- Func Item( iIndex) As
-
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 property. dd>
- Returns:
- The retrieved geometric element
- Example:
-
This example retrieves the last item in the geometric element collection.
Set lastCst = cstList.Item(cstList.Count)
dd>