Returns a MechanismCommand using its index or its name from the Commands collection.
Parameters:
iIndex
The index or the name of the MechanismCommand to retrieve from
the collection of Commands.
As a numerics, this index is the rank of the MechanismCommand
in the collection.
The index of the first MechanismCommand in the collection is 1, and
the index of the last MechanismCommand is Count.
As a string, it is the name you assigned to the MechanismCommand using
the
This example returns in ThisCommand the third MechanismCommand
in the collection, and in ThatCommand the MechanismCommand named
MyCommand.
Dim ThisCommand As MechanismCommand
Set ThisCommand = TheCommands.Item(3)
Dim ThatCommand As MechanismCommand
Set ThatCommand = CATIA.MechanismCommands.Item("MyCommand")
Remove a MechanismCommand from the MechanismCommands collection.
Parameters:
iIndex
The index or the name of the MechanismCommand to retrieve from the collection of MechanismCommands.
As a numerics, this index is the rank of the MechanismCommand in the collection.
The index of the first MechanismCommand in the collection is 1, and
the index of the last MechanismCommand is Count.
As a string, it is the name you assigned to the MechanismCommand.
Returns:
Nothing
Example:
The following example removes the tenth MechanismCommand and the MechanismCommand named
CommandTwo from the TheCommands collection.