pycatia.fitting_interfaces.track

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.fitting_interfaces.track.Track(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
FittingInterfaces.Sampled
Track

The interface to access a CATIATrack.
Role: A CATIATrack (or track) object is an object to define motion to various
items (such as a product or a shuttle). These tracks can be simulated which
results in them to move along the defined trajectory (with a set
speed).
get_matrix_all(o_matrix_all: tuple) None

Note

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

GetMatrixAll Gets the base location of the track. The sum of several
internal transforms.

Parameters:

oMatrixAll
An array of 12 doubles. A 3 by 3 rotation matrix followed by a
position (x/y/z) vector, in millimeters.

Returns:
S_OK if everything was succcessfull
Parameters:

o_matrix_all (tuple) –

Return type:

None

mirror(i_point: tuple, i_normal: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub Mirror(CATSafeArrayVariant iPoint,
CATSafeArrayVariant iNormal)

Produces a “mirror image” of the track. Role: Determines the “mirror image”
of a track. The “mirror” is a 3d plane specified by a point on the plane and
the normal to the surface of the plane. The mirror calculation involves going
through each shot and projecting it in the space on the other side of the
mirror plane. The projection “reflects” the point perpendicularly to the
plane.

Parameters:

iPoint
A point on the plane that will be used to define the mirror.

iNormal
A normal to the plane that will be used to define the
mirror.
Parameters:
  • i_point (tuple) –

  • i_normal (tuple) –

Return type:

None

move(i_transform: tuple) None

Note

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

Moves the track a certain position.

Parameters:

iTransfo
Specifies a relative amount to move the track.
Parameters:

i_transform (tuple) –

Return type:

None

property move_mode: int

Note

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

Returns or sets the track’s movement mode. Can be speed or time based. In
Speed mode, the total time is calculated based on the time need to travel the
distance of the track at the given speed. In Time mode, the movement speed to
calculated so that the end of the track is reached by the end of the total
time. Uses enum DMUTrackMoveMode, which defined is in this interface.
Returns:

enum dmu_track_move_mode

Return type:

int

property speed: float

Note

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

Returns or sets the track speed. Please note that the value of the speed
should be greater than zero.

Example
This example sets the track speed to 17.54.

myTrack.Speed = 17.54
Return type:

float