pycatia.kinematics_interfaces.dressups

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.kinematics_interfaces.dressups.Dressups(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Dressups

A collection of all Dressup entities currently managed by the
application.
add(i_mechanism: Mechanism, i_context: Product) Dressup

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func Add(Mechanism iMechanism,
Product iContext) As Dressup

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)
Parameters:
Return type:

Dressup

item(i_index: cat_variant) Dressup

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func Item(CATVariant iIndex) As Dressup

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”)
Parameters:

i_index (cat_variant) –

Return type:

Dressup

list_mechanisms_context() tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func ListMechanismsContext() As CATSafeArrayVariant

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))
Return type:

tuple

list_possible_mechanisms() tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func ListPossibleMechanisms() As CATSafeArrayVariant

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))
Return type:

tuple

remove(i_index: cat_variant) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub Remove(CATVariant 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”)
Parameters:

i_index (cat_variant) –

Return type:

None