pycatia.manufacturing_interfaces.manufacturing_copy_transformation

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.manufacturing_interfaces.manufacturing_copy_transformation.ManufacturingCopyTransformation(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
DMAPSInterfaces.Activity
ManufacturingInterfaces.ManufacturingActivity
ManufacturingCopyTransformation

Interface representing the Manufacturing Copy Transformation
object.

Role: Component that implements CATIAManufacturingCopyOrder is MfgCopyOrder.
This interface allows to modify the Copy Tranformation and to get the start and
end points of the computed trajectory.
add_operation(i_manufacturing_activity: ManufacturingActivity) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub AddOperation(ManufacturingActivity
iManufacturingActivity)

Add a Manufacturing Operation to a Copy Transformation.

Example:
The following example adds a manufacturing operation myOperation, as a
reference for the Copy Transformation
CopyTransformation

call myOperation.AddOperation(CopyTransformation)
Parameters:

i_manufacturing_activity (ManufacturingActivity) –

Return type:

None

get_trajectory_end_point_coord(o_end_point: tuple) None

Note

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

Retrieves the Manufacturing Copy Order trajectory end
point.

Example:
The following example retrieves in oEndPoint the end point of the
Manufacturing Copy Order CopyOrder

Dim oEndPoint(3)
call CopyOrder.GetTrajectoryEndPointCoord(oEndPoint)
x = oEndPoint(0)
y = oEndPoint(1)
z = oEndPoint(2)
Parameters:

o_end_point (tuple) –

Return type:

None

get_trajectory_start_point_coord(o_start_point: tuple) None

Note

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

Retrieves the Manufacturing Copy Order Operation’s trajectory start
point.

Example:
The following example retrieves in oStartPoint the start point of the
Machining Operation Operation

Dim oStartPoint(3)
call
Operation.GetTrajectoryStartPointCoord(oStartPoint)
x = oStartPoint(0)
y = oStartPoint(1)
z = oStartPoint(2)
Parameters:

o_start_point (tuple) –

Return type:

None

set_copy_transformation(i_number_of_copies: int, i_ordering: str, i_transformation_type: str) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetCopyTransformation(long iNumberOfCopies,
CATBSTR iOrdering,
CATBSTR iTransformationType)

Set the ‘Number of Copies’, ‘Ordering’ and ‘Transformation Type’ of a Copy
Tranformation.

Parameters:

iOrdering
Legal values: iOrdering can be

“EachOperationNTime”
“AllOperationsNTime”

iTransformationType
Legal values: iTransformationType can be

“Translation”
“Rotation”
“Mirror”
“AxisToAxis”
“Scale”
“Affinity”
“Matrix”

Example:
The following example does that for the Copy Transformation
CopyTransformation :

call CopyTransformation.SetCopyTransformation(iNumberOfCopies,
“EachOperationNTime”, “Translation”)
Parameters:
  • i_number_of_copies (int) –

  • i_ordering (str) –

  • i_transformation_type (str) –

Return type:

None

set_copy_transformation_translation_attributes(i_translation_type: str, i_distance_along_x: float, i_distance_along_y: float, i_distance_along_z: float) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetCopyTransformationTranslationAttributes(CATBSTR
iTranslationType,
double iDistanceAlongX,
double iDistanceAlongY,
double iDistanceAlongZ)

Set the ‘Translation Type’, ‘Distance Along X’, ‘Distance Along Y’ and
‘Distance Along Z’ of a Copy Tranformation which has a Translation as
transformation.

Parameters:

iTranslationType
Legal values: iTranslationType can be

“AbsoluteCoordinates”
“CurrentCoordinates”

iDistanceAlongX
distance along X in mm.
iDistanceAlongY
distance along Y in mm.
iDistanceAlongZ
distance along Z in mm.
Example:
The following example does that for the Copy Transformation
CopyTransformation :

call
CopyTransformation.SetCopyTransformationTranslationAttributes(“AbsoluteCoordinates”, 0.0, 100.0, 0.0
)
Parameters:
  • i_translation_type (str) –

  • i_distance_along_x (float) –

  • i_distance_along_y (float) –

  • i_distance_along_z (float) –

Return type:

None