Indexes   

Dressups (Collection)

A collection of all Dressup entities currently managed by the application.

Method Index

Add
Creates a new Dressup and adds it to the Dressups collection.
Item
Returns a Dressup using its index or its name from the Dressups collection.
ListMechanismsContext
Each mechanism of the list given by ListPossibleMechanisms has a context product on which it is defined.
ListPossibleMechanisms
Returns information about all possible mechanisms on which a dressup can be created.
Remove
Removes a Dressup from the Dressups collection.

Methods


o 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.
iContext
The Context product on which the mechanism is defined
Returns:
The created Dressup
Example:
This example creates a new Dressup in the TheDressups collection.
    Dim NewDressup As Dressup
    Set NewDressup = TheDressups.Add(Mechanism)
    
o 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
AnyObject.Name property.
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")
 
o Func ListMechanismsContext() As
Each mechanism of the list given by ListPossibleMechanisms has a context product on which it is defined.
Parameters:
Nothing
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)) 
    
o Func ListPossibleMechanisms() As
Returns information about all possible mechanisms on which a dressup can be created.
Parameters:
Nothing
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)) 
    
o 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.
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")
    

Copyright © 2006, Dassault Systèmes. All rights reserved.