pycatia.kinematics_interfaces.mechanism¶
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.Mechanism(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMechanismInterface to access the Mechanism object.- add_command(i_cmd_type: str, i_joint: Joint) MechanismCommand ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddCommand(CATBSTR iCmdType,Joint iJoint) As MechanismCommandAdds a command in the mechanism, on a joint.Parameters:iCmdTypeThe command type.iJointThe joint to be driven.oNewCommandThe newly created command.
- Parameters:
i_cmd_type (str) –
i_joint (Joint) –
- Return type:
- add_joint(i_joint_type: str, i_list_elem: tuple) Joint ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddJoint(CATBSTR iJointType,CATSafeArrayVariant iListElem) As JointAdds a joint in the mechanism.Parameters:iJointTypeThe joint type.iListElemThe list of elements expected to locate the joint, depending on thetype.oNewJointThe newly created joint.
- Parameters:
i_joint_type (str) –
i_list_elem (tuple) –
- Return type:
- property commands: MechanismCommands¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Commands() As MechanismCommands (Read Only)Returns the collection of commands in the mechanism.Parameters:oCommandsThe collection of commands. This property is read only becausebecause list is aggregated in the Mechanism
- Return type:
- property fixed_part: Product¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FixedPart() As ProductReturns or sets the fixed part of the mechanism.Parameters:oFixedPartThe fixed part.
- Return type:
- get_command_values(io_cmd_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetCommandValues(CATSafeArrayVariant ioCmdValues)Allows to retrieve current state of the mechanism.Parameters:ioCmdValuescurrent command values
- Parameters:
io_cmd_values (tuple) –
- Return type:
None
- get_product(i_index: int) Product ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProduct(long iIndex) As ProductReturns an item from the list of the products involved in themechanism.Parameters:iIndexThe index for the product.oProductThe product at that index.Returns:HRESULT
- Parameters:
i_index (int) –
- Return type:
- get_product_motion(i_product: Product, io_motion: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetProductMotion(Product iProduct,CATSafeArrayVariant ioMotion)Retrieves motion from initial state to current state for a part of themechanism.Parameters:iProductThe moving productioMotionThe motion matrix (12 real values, compatible with the Move object)See also:Move
- Parameters:
i_product (Product) –
io_motion (tuple) –
- Return type:
None
- property joints: Joints¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Joints() As Joints (Read Only)Returns the collection of joints in the mechanism.Parameters:oJointsThe collection of joints. This property is read only becausebecause list is aggregated in the Mechanism
- Return type:
- property nb_commands: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbCommands() As long (Read Only)Returns the number of commands in the mechanism.Parameters:oNbCommandsThe number of commands. This property is read only because numberdepends on commands creation/destruction
- Return type:
int
- property nb_dof: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbDof() As long (Read Only)Returns the degree of freedom of the mechanism.Parameters:oNbDofThe degree of freedom. This property is read only because becauseit depends on joints and commands
- Return type:
int
- property nb_joints: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbJoints() As long (Read Only)Returns the number of joints in the mechanism.Parameters:oNbJointsThe number of joints. This property is read only because numberdepends on joints creation/destruction
- Return type:
int
- property nb_products: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbProducts() As long (Read Only)Returns the number of products (i.e. bodies) involved in themechanism.Parameters:oNbProductsThe number of products. This property is read only because numberdepends on joints creation/destruction
- Return type:
int
- put_command_values(i_cmd_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutCommandValues(CATSafeArrayVariant iCmdValues)Triggers immediate mechanism solving (motion is NOT applied to themodel).Parameters:iCmdValuescommand values to be solved for
- Parameters:
i_cmd_values (tuple) –
- Return type:
None
- put_command_values_with_multi_steps(i_cmd_values: tuple, i_nb_steps: int, o_step_reached: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutCommandValuesWithMultiSteps(CATSafeArrayVariantiCmdValues,long iNbSteps,long oStepReached)Puts command values in given number of steps. Visualization is updatedafter every step.Parameters:iCmdValuesArray of target command values (position to achieve)inbStepsNumber of steps in witch the target command value is to bereached.Legal valuesinbSteps greater than 0Number of step must be greater than zero.oStepReachedNumber of steps reached successfully.
- Parameters:
i_cmd_values (tuple) –
i_nb_steps (int) –
o_step_reached (int) –
- Return type:
None
- reset_cmd_value_to_zero(i_command: MechanismCommand) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ResetCmdValueToZero(MechanismCommand iCommand)Sets the command value to zero for the given command without disturbingpart positions.Parameters:iCommandThe command to reset to zero
- Parameters:
i_command (MechanismCommand) –
- Return type:
None
- update() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Update()Reassembles the mechanism after dimension changes in the parts.
- Return type:
None