pycatia.dnb_human_modeling_interfaces.swkik_constraint¶
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.dnb_human_modeling_interfaces.swkik_constraint.SWKIKConstraint(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDNBHumanModelingInterfaces.SWKManikinPartSWKIKConstraintThis interface manages the constraint of the manikin.It provides access to the constraints data (ID, EndEffector,StartSegment,…)- property active: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Active() As booleanReturns or sets the constraint activity.A constraint being active means that the constraint is takeninto account during the resolution.If the constraint is not active,then it is ignored during the resolution.
- Return type:
bool
- property angle_criteria: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AngleCriteria() As doubleReturns or sets the angle criteria that will be used to evaluate success orfailure of the constraint resolution. If, after resolution, the agle betweenthe constraint and the target is lower than the criteria, then the constraintwill be considered resolved. This criteria must be specified in radians.
- Return type:
float
- property angle_to_target: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AngleToTarget() As double (Read Only)Returns the angle (in radians) from the constraint end effector to thetarget.
- Return type:
float
- property distance_criteria: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DistanceCriteria() As doubleReturns or sets the distance criteria that will be used to evaluate successor failure of the constraint resolution. If, after resolution, the distancebetween the constraint and the target is lower than the criteria, then theconstraint will be considered resolved. This criteria must be specified inmillimeters.
- Return type:
float
- property distance_to_target: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DistanceToTarget() As double (Read Only)Returns the distance (in mm) from the constraint end effector to thetarget.
- Return type:
float
- property end_effector: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property EndEffector() As CATBSTRReturns or sets the end effector of the IK chain of the constraint. Thestring in this property is the short name of the last segment (or line ofsight) to be driven by this constraint
- Return type:
str
- get_constraint_element() AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetConstraintElement() As CATBaseDispatchReturns a reference to the target object of the constraint (if any).
- Return type:
- get_end_effector() SWKBodyElement ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetEndEffector() As SWKBodyElementReturns the end effector of the IK chain of the constraint.
- Return type:
- get_start_segment() SWKSegment ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetStartSegment() As SWKSegmentReturns the start segment of the IK chain of the constraint.
- Return type:
- get_target_line(po_target_line_coord: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTargetLine(CATSafeArrayVariant poTargetLineCoord)Get the target points coordinates of a line This methodretrieves the origin point coordinates as (x, y, z) dataand the direction value of a line.Parameters:poTargetLineCoordThe array of 6 data containing target point coordinates as x, y, zrespectively and the x, y, z direction values for the target line.
- Parameters:
po_target_line_coord (tuple) –
- Return type:
None
- get_target_plane(po_target_plane_coord: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTargetPlane(CATSafeArrayVariant poTargetPlaneCoord)Get the target points coordinates of a line This method retrieves theorigin point coordinates as (x, y, z) data and the direction value of aline.Parameters:poTargetLineCoordThe array of 9 data containing origin point coordinates as x, y, z,the first normalized direction as x, y, z coordinates and the x, y, zortho-normalized direction values for the target plane.
- Parameters:
po_target_plane_coord (tuple) –
- Return type:
None
- get_target_point(po_target_pt_coord: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTargetPoint(CATSafeArrayVariant poTargetPtCoord)Get the target point coordinates. This method retrieves the target pointcoordinates as (x, y, z) data under an array form.Parameters:poTargetPtCoordThe array containing target point coordinates as x, y, zrespectively, the x coordinate being the first data in the array.
- Parameters:
po_target_pt_coord (tuple) –
- Return type:
None
- property identifier: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Identifier() As CATBSTR (Read Only)Returns the identifier(ID) of the constraint.
- Return type:
str
- property is_success: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property IsSuccess() As boolean (Read Only)Returns whether the resolution of this constraint is a success or afailure, given the current criteria.
- Return type:
bool
- property manikin: SWKManikin¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Manikin() As SWKManikin (Read Only)Returns the manikin which owns this IK constraint.
- Return type:
- property priority: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Priority() As longReturns or sets the priority of the constraint.When using that property, the number returned or setis an integer and must be between 1 and 4 inclusive.The lower the priority, the more prioritary the constraint becomes.
- Return type:
int
- reset_target() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ResetTarget()Reset the offset of the target object (i.e. set the offsetto the end effector’s current position).
- Return type:
None
- property rotation_offset_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property RotationOffsetAngle() As doubleReturns or sets the rotation offset angle for the 3D planeconstraint.This rotation offset angle(rad) is used to adjust 3D planeconstraint.When using that property, the number returned or setmust be between -PI and PI inclusive.
- Return type:
float
- set_constraint_element(pi_constraint_element: AnyObject, pi_constraint_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetConstraintElement(CATBaseDispatchpiConstraintElement,CATBSTR piConstraintType)Set the target object to follow. This method establishes a part relationbetween the end effector and an object to follow.Parameters:piConstraintElementA reference to the target objectThis target object can be either a wireframeGeometricElement object such as a plane or a line, or a boundaryrepresentation object such as a face, a vertex or an edge. In the case of a‘Fix on’ constraint, the target object must be the product ( CATIAProduct)associated with the constraint.piConstraintTypeThe type of the constraint.This parameter can take the following values: “Coincidence”, “Contact”,“Contact2D”, “Contact3D”, “FixPositon”, “FixOrientation”,“FixPositonAndOrientation”, “FixOnPositon”, “FixOnOrientation” and“FixOnPositonAndOrientation”.
- Parameters:
pi_constraint_element (AnyObject) –
pi_constraint_type (str) –
- Return type:
None
- set_target_line(pi_object: Reference, pi_start_point_x: float, pi_start_point_y: float, pi_start_point_z: float, pi_end_point_x: float, pi_end_point_y: float, pi_end_point_z: float, pi_constraint_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTargetLine(Reference piObject,double piStartPointX,double piStartPointY,double piStartPointZ,double piEndPointX,double piEndPointY,double piEndPointZ,CATBSTR piConstraintType)Set the target line to follow. This method establishes a contact orcoincidence constraint between the end effector and theline.Parameters:piConstraintElementA reference to the target objectThis target object must be the product (CATIAProduct) associated with the constraint.piStartPointXThe x coordinate of the start point of the line, relatively to thefather object.piStartPointYThe y coordinate of the start point of the line, relatively to thefather object.piStartPointZThe z coordinate of the start point of the line, relatively to thefather object.piEndPointXThe x coordinate of the end point of the line, relatively to the fatherobject.piEndPointYThe y coordinate of the end point of the line, relatively to the fatherobject.piEndPointZThe z coordinate of the end point of the line, relatively to the fatherobject.piConstraintTypeThe type of the constraint.This parameter can take the values “Contact”, “Contact2D”, “Contact3D”or “Coincidence”.
- Parameters:
pi_object (Reference) –
pi_start_point_x (float) –
pi_start_point_y (float) –
pi_start_point_z (float) –
pi_end_point_x (float) –
pi_end_point_y (float) –
pi_end_point_z (float) –
pi_constraint_type (str) –
- Return type:
None
- set_target_plane(pi_object: Reference, pi_origin_x: float, pi_origin_y: float, pi_origin_z: float, pi_normal_x: float, pi_normal_y: float, pi_normal_z: float, pi_constraint_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTargetPlane(Reference piObject,double piOriginX,double piOriginY,double piOriginZ,double piNormalX,double piNormalY,double piNormalZ,CATBSTR piConstraintType)Set the target plane to follow. This method establishes a contact orcoincidence constraint between the end effector and theplane.Parameters:piConstraintElementA reference to the target objectThis target object must be the product (CATIAProduct) associated with the constraint.piOriginXThe x coordinate of the origin of the plane, relatively to the fatherobject.piOriginYThe y coordinate of the origin of the plane, relatively to the fatherobject.piOriginZThe z coordinate of the origin of the plane, relatively to the fatherobject.piNormalXThe x coordinate of the normal vector of the plane, relatively to thefather object.piNormalYThe y coordinate of the normal vector of the plane, relatively to thefather object.piNormalZThe z coordinate of the normal vector of the plane, relatively to thefather object.piConstraintTypeThe type of the constraint.This parameter can take the values “Contact”, “Contact2D”, “Contact3D”or “Coincidence”.
- Parameters:
pi_object (Reference) –
pi_origin_x (float) –
pi_origin_y (float) –
pi_origin_z (float) –
pi_normal_x (float) –
pi_normal_y (float) –
pi_normal_z (float) –
pi_constraint_type (str) –
- Return type:
None
- set_target_point(pi_object: Reference, pi_coord_x: float, pi_coord_y: float, pi_coord_z: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTargetPoint(Reference piObject,double piCoordX,double piCoordY,double piCoordZ)Set the target point to follow. This method establishes a contactconstraint between the end effector and the point.Parameters:piConstraintElementA reference to the target objectThis target object must be the product (CATIAProduct) associated with the constraint.piCoordXThe x coordinate of the point, relatively to the father object.piCoordYThe y coordinate of the point, relatively to the father object.piCoordZThe z coordinate of the point, relatively to the father object.
- Parameters:
pi_object (Reference) –
pi_coord_x (float) –
pi_coord_y (float) –
pi_coord_z (float) –
- Return type:
None
- property start_segment: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property StartSegment() As CATBSTRReturns or sets the first segment of the body to be drivenby this constraint.
- Return type:
str
- property transfer_with_target: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TransferWithTarget() As booleanReturns or sets the Transfer With Target property.
- Return type:
bool
- property user_type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property UserType() As CATBSTR (Read Only)Returns the user type of the constraint. The user type returned will be oneof the following: (“Contact”, “Coincidence”, “Fix”, or “FixOn”),
- Return type:
str