pycatia.kinematics_interfaces.mechanisms¶
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.mechanisms.Mechanisms(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionMechanismsA collection of all Mechanism entities currently managed by theapplication.- add() Mechanism ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add() As MechanismCreates a new Mechanism and adds it to the Mechanismscollection.Returns:The created MechanismExample:This example creates a new Mechanism in the TheMechanismscollection.Dim NewMechanism As MechanismSet NewMechanism = TheMechanisms.Add()
- Return type:
- item(i_index: cat_variant) Mechanism ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As MechanismReturns a Mechanism using its index or its name from the Mechanismscollection.Parameters:iIndexThe index or the name of the Mechanism to retrieve from thecollection of Mechanisms. As a numerics, this index is the rank of theMechanism in the collection. The index of the first Mechanism in the collectionis 1, and the index of the last Mechanism is Count. As a string, it is the nameyou assigned to the Mechanism using theAnyObject.Name property.Returns:The retrieved MechanismExample:This example returns in ThisMechanism the third Mechanism in thecollection, and in ThatMechanism the Mechanism namedMyMechanism.Dim ThisMechanism As MechanismSet ThisMechanism = TheMechanisms.Item(3)Dim ThatMechanism As MechanismSet ThatMechanism = CATIA.Mechanisms.Item(“MyMechanism”)
- Parameters:
i_index (cat_variant) –
- Return type:
- 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 Mechanism from the Mechanisms collection.Parameters:iIndexThe index or the name of the Mechanism to retrieve from thecollection of mechanisms. As a numerics, this index is the rank of theMechanism in the collection. The index of the first Mechanism in the collectionis 1, and the index of the last Mechanism is Count. As a string, it is the nameyou assigned to the Mechanism.Returns:NothingExample:The following example removes the tenth Mechanism and the Mechanismnamed MechanismTwo from the TheMechanisms collection.TheMechanisms.Remove(10)TheMechanisms.Remove(“MechanismTwo”)
- Parameters:
i_index (cat_variant) –
- Return type:
None