pycatia.kinematics_interfaces.mechanism_commands¶
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.mechanism_commands.MechanismCommands(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionMechanismCommandsA collection of all MechanismCommand entities currently managed by theapplication.- add() MechanismCommand ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add() As MechanismCommandCreates a new MechanismCommand and adds it to the MechanismCommandscollection.Returns:The created MechanismCommandExample:This example creates a new MechanismCommand in the TheCommandscollection.Dim NewCommand As MechanismCommandSet NewCommand = TheCommands.Add()
- Return type:
- item(i_index: cat_variant) MechanismCommand ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As MechanismCommandReturns a MechanismCommand using its index or its name from the Commandscollection.Parameters:iIndexThe index or the name of the MechanismCommand to retrieve from thecollection of Commands. As a numerics, this index is the rank of theMechanismCommand in the collection. The index of the first MechanismCommand inthe collection is 1, and the index of the last MechanismCommand is Count. As astring, it is the name you assigned to the MechanismCommand using theAnyObject.Name property.Returns:The retrieved MechanismCommandExample:This example returns in ThisCommand the third MechanismCommand in thecollection, and in ThatCommand the MechanismCommand namedMyCommand.Dim ThisCommand As MechanismCommandSet ThisCommand = TheCommands.Item(3)Dim ThatCommand As MechanismCommandSet ThatCommand = CATIA.MechanismCommands.Item(“MyCommand”)
- 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)Remove a MechanismCommand from the MechanismCommandscollection.Parameters:iIndexThe index or the name of the MechanismCommand to retrieve from thecollection of MechanismCommands. As a numerics, this index is the rank of theMechanismCommand in the collection. The index of the first MechanismCommand inthe collection is 1, and the index of the last MechanismCommand is Count. As astring, it is the name you assigned to the MechanismCommand.Returns:NothingExample:The following example removes the tenth MechanismCommand and theMechanismCommand named CommandTwo from the TheCommandscollection.TheCommands.Remove(10)TheCommands.Remove(“CommandTwo”)
- Parameters:
i_index (cat_variant) –
- Return type:
None