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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDressupsA collection of all Dressup entities currently managed by theapplication.- 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 DressupCreates a new Dressup and adds it to the Dressupscollection.Parameters:iMechanismThe mechanism on which the dressup will apply.iContextThe Context product on which the mechanism is definedReturns:The created DressupExample:This example creates a new Dressup in the TheDressupscollection.Dim NewDressup As DressupSet NewDressup = TheDressups.Add(Mechanism)
- 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 DressupReturns a Dressup using its index or its name from the Dressupscollection.Parameters:iIndexThe index or the name of the Dressup to retrieve from thecollection of Dressups. As a numerics, this index is the rank of the Dressup inthe collection. The index of the first Dressup in the collection is 1, and theindex of the last Dressup is Count. As a string, it is the name you assigned tothe Dressup using theAnyObject.Name property.Returns:The retrieved DressupExample:This example returns in ThisDressup the third Dressup in thecollection, and in ThatDressup the Dressup namedMyDressup.Dim ThisDressup As DressupSet ThisDressup = TheDressups.Item(3)Dim ThatDressup As DressupSet ThatDressup = CATIA.Dressups.Item(“MyDressup”)
- Parameters:
i_index (cat_variant) –
- Return type:
- list_mechanisms_context() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListMechanismsContext() As CATSafeArrayVariantEach mechanism of the list given by ListPossibleMechanisms has a contextproduct on which it is defined.Parameters:NothingReturns:The list of mechanisms’ contexts on which a dressup can be created. Thecontext of oMechanismList(i) is oContextList(i).Example:The following example returns the first and the last element of thelist of mechanisms’ contexts. We assume that this list contains at least twovalues.Dim ContextList As ProductContextList = MyDressups.ListMechanismsContext()Dim FirstContext As ProductSet FirstContext = ContextList(0)Dim LastContext As ProductSet 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 CATSafeArrayVariantReturns information about all possible mechanisms on which a dressup can becreated.Parameters:NothingReturns:The list of possible mechanisms on which a dressup can be created.Example:The following example returns the first and the last element of thelist of possible mechanisms. We assume that this list contains at least twovalues.Dim PossibleMecList As MechanismPossibleMecList = MyDressups.ListPossibleMechanisms()Dim FirstMeca As MechanismSet Meca = PossibleMecList(0)Dim LastMeca As MechanismSet 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:iIndexThe index or the name of the Dressup to retrieve from thecollection of Dressups. As a numerics, this index is the rank of the Dressup inthe collection. The index of the first Dressup in the collection is 1, and theindex of the last Dressup is Count. As a string, it is the name you assigned tothe Dressup.Returns:NothingExample:The following example removes the tenth Dressup and the Dressup namedDressupTwo from the TheDressups collection.TheDressups.Remove(10)TheDressups.Remove(“DressupTwo”)
- Parameters:
i_index (cat_variant) –
- Return type:
None