Methods
- Sub Add( iItemValue)
- Adds an item at the end of the list. Does an AddRef on the item. Returns E_FAIL if the object type is not correct. Will return E_FAIL if trying to set an already existing element while IsDuplicateElementsAllowed is false.
- Func Item( iIndex) As
-
Retrieves a Feature using its index or its name from the
Features collection.
- Parameters:
-
- iIndex
- The index or the name of the Feature to retrieve from the collection of Features. As a numerics, this index is the rank of the Feature in the collection. The index of the first Feature in the collection is 1, and the index of the last Feature is Count. As a string, it is the name you assigned to the Feature using the property or when creating the Feature. dd>
- Returns:
- The retrieved Feature
- Example:
-
This example retrieves the last Feature in the Features
collection.
Dim lastFeature As CATIABase Set lastFeature = Features.Item(Features.Count)
- Parameters:
-
- iIndex
- The index or the name of the Feature to retrieve from the collection of Features. As a numerics, this index is the rank of the Feature in the collection. The index of the first Feature in the collection is 1, and the index of the last Feature is Count. As a string, it is the name you assigned to the Feature using the property or when creating the Feature.
- Example:
-
This example removes the Feature named density from
the Features collection.
Features.Remove("density")