Methods
- Func Add( iMechanism, iContext) As
-
Creates a new Dressup and adds it to the Dressups collection.
- Parameters:
-
- iMechanism
- The mechanism on which the dressup will apply. dd>
- iContext
- The Context product on which the mechanism is defined dd>
- Returns:
- The created Dressup
- Example:
-
This example creates a new Dressup
in the TheDressups collection.
Dim NewDressup As Dressup Set NewDressup = TheDressups.Add(Mechanism)dd>
- Func Item( iIndex) As
-
Returns a Dressup using its index or its name from the Dressups collection.
- Parameters:
-
- iIndex
- The index or the name of the Dressup to retrieve from the collection of Dressups. As a numerics, this index is the rank of the Dressup in the collection. The index of the first Dressup in the collection is 1, and the index of the last Dressup is Count. As a string, it is the name you assigned to the Dressup using the property. dd>
- Returns:
- The retrieved Dressup
- Example:
-
This example returns in ThisDressup the third Dressup
in the collection, and in ThatDressup the Dressup named
MyDressup.
Dim ThisDressup As Dressup Set ThisDressup = TheDressups.Item(3) Dim ThatDressup As Dressup Set ThatDressup = CATIA.Dressups.Item("MyDressup")dd>
- Func ListMechanismsContext() As
-
Each mechanism of the list given by ListPossibleMechanisms has
a context product on which it is defined.
- Parameters:
-
- Nothing
- dd>
- Returns:
- The list of mechanisms' contexts on which a dressup can be created. The context of oMechanismList(i) is oContextList(i).
- Example:
-
The following example returns the first and the last element of the list of mechanisms' contexts.
We assume that this list contains at least two values.
Dim ContextList As Product ContextList = MyDressups.ListMechanismsContext() Dim FirstContext As Product Set FirstContext = ContextList(0) Dim LastContext As Product Set LastContext = ContextList(ubound(ContextList))dd>
- Func ListPossibleMechanisms() As
-
Returns information about all possible mechanisms on which a dressup can be created.
- Parameters:
-
- Nothing
- dd>
- Returns:
- The list of possible mechanisms on which a dressup can be created.
- Example:
-
The following example returns the first and the last element of the list of possible mechanisms.
We assume that this list contains at least two values.
Dim PossibleMecList As Mechanism PossibleMecList = MyDressups.ListPossibleMechanisms() Dim FirstMeca As Mechanism Set Meca = PossibleMecList(0) Dim LastMeca As Mechanism Set Meca = PossibleMecList(ubound(PossibleMecList))dd>
- Sub Remove( iIndex)
-
Removes a Dressup from the Dressups collection.
- Parameters:
-
- iIndex
- The index or the name of the Dressup to retrieve from the collection of Dressups. As a numerics, this index is the rank of the Dressup in the collection. The index of the first Dressup in the collection is 1, and the index of the last Dressup is Count. As a string, it is the name you assigned to the Dressup. dd>
- Returns:
- Nothing
- Example:
-
The following example removes the tenth Dressup and the Dressup named
DressupTwo from the TheDressups collection.
TheDressups.Remove(10) TheDressups.Remove("DressupTwo")dd>