pycatia.cat_tps_interfaces.shifted_profile_tolerance

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.cat_tps_interfaces.shifted_profile_tolerance.ShiftedProfileTolerance(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
ShiftedProfileTolerance

Interface for accessing shifted tolerance zone informations of a
TPS.
get_shift_direction(op_direction: tuple) tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetShiftDirection(CATSafeArrayVariant opDirection)

Retrieves the shift direction by two points.

Parameters:

opDirection
The first 3 values of opDirection correspond to the X,Y and Z
values of the start point respectively and the next 3 values correspond to the
X, Y and Z values of the end point respectively.

Example:

This example gets the start and end points in a VB
Script
Dim oTab(6) As CATSafeArrayVariant
Set shiftTol = annotation.ShiftedProfileTolerance
shiftTol.GetShiftDirection(oTab)
oStream.Write “ Shifted Direction Start Point : “& oTab(0) & “ “ & oTab(1) & “ “ & oTab(2) & sLF
oStream.Write “ Shifted Direction End Point : “& oTab(3) & “ “ & oTab(4) & “ “ & oTab(5) & sLF
Parameters:

op_direction (tuple) –

Return type:

tuple

get_shift_side(op_point: tuple) tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetShiftSide(CATSafeArrayVariant opPoint)

Retrieves shift side.

Parameters:

opPoint
a mathematical point located on the shift side of surface. The 3
values of opPoint correspond to the X,Y and Z values of the point located on
the shift side of surface.

Example:

This example gets the shift side point in a VB
Script
Dim oShiftTab(3) As CATSafeArrayVariant
Set shiftTol = annotation.ShiftedProfileTolerance
shiftTol.GetShiftSide(oShiftTab)
oStream.Write “ Shifted Side Point : “& oShiftTab(0) & “ “ & oShiftTab(1) & “ “ & oShiftTab(2) & sLF
Parameters:

op_point (tuple) –

Return type:

tuple

property shift_value: float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property ShiftValue() As double

Retrieves or sets shift value of tolerance zone (in millimeters). The shift
value is the distance between the toleranced surface and the median surface of
tolerance zone. The value is always positive because shift side is given by
GetShiftSide method.
Return type:

float