ManufacturingToolMotion (Object)

A ManufacturingToolMotion for a Manufacturing Document.

Methods


Func GetAttribute( iAttribut) As
Retrieve by is name the attribute of a Manufacturing ToolMotion.
Each attribute is a CKE object.
Example:
The following example retreives in Diameter the attribute MfgDiameter of the Manufacturing ToolMotion firstToolmotion
 Set Diameter = firstToolmotion.GetAttribute(MfgDiameter)
Func GetFeedrate( oFeedrate) As
Retrieves the Feedrate of a Manufacturing Point to point ToolMotion.
If the ToolMotion is not a Manufacturing Point to point, nothing is done.
Parameters:
oFeedrateType
Legal values: oFeedrateType can be:
"RAPID"
"LOCAL"
"NONE"
oFeedrate
Feedrate value. (expressed in MKS units : m/s if linear feedrate, or m/turn if angular feedrate)
Feedrate value has a meaning only if oFeedrateType is "LOCAL"
Example:
The following example gets the feedrate type of a Manufacturing Point To Point Toolmotion submotion1
 dim FeedVal as double
 dim FeedType as CATBSTR
 FeedType=SubMotion1.GetFeedrate(FeedVal)
Sub GetGotoPtPointCoordinates( oX, oY, oZ)
Retrieves coordinates on the ToolMotion.
If the type of the ToolMotion is not MfgSeqMotionPoint, nothing is done.
These coordinates are expressed in the current axis system.
Coordinates units are millimeters.
Example:
The following example gets coordinates on a Manufacturing Point To Point Toolmotion submotion1
 dim XCoord as double
 dim YCoord as double
 dim ZCoord as double
 Call SubMotion1.GetGotoPtPointCoordinates(XCoord, YCoord, ZCoord)
Func GetPPWord() As
Retrieves the content of a Manufacturing PP Word ToolMotion.
Example:
The following example retrieves in Message the content of the Manufacturing PPWord Toolmotion firstToolmotion
 dim Message as CATBSTR
 Message = firstToolmotion.GetPPWord
Func GetType() As
Retrieves the type of a Manufacturing ToolMotion.
Parameters:
oType
Legal values: oType can be:
"MfgSeqMotionPoint"
"MfgSeqMotionPosition"
"MfgSeqMotionDelta"
Example:
The following example retrieves in ThisType the type of the Manufacturing Toolmotion firstToolMotion
 dim ThisType as CATBSTR
 Set ThisType = firstToolMotion.GetType
Sub SetFeedrate( iFeedrate, iFeedrateType)
Defines the feedrate of a Manufacturing Point to point ToolMotion.
If the ToolMotion is not a Manufacturing Point to point, nothing is done.
Parameters:
iFeedrateType
Legal values: iFeedrateType can be:
"RAPID"
"LOCAL"
"NONE"
oFeedrate
Feedrate value. (expressed in MKS units : m/s if linear feedrate, or m/turn if angular feedrate)
Feedrate value is taken into account only if iFeedrateType is "LOCAL"
Example:
The following example sets a local feedrate on a Manufacturing Point To Point Toolmotion submotion1
 dim FeedVal as double
 dim FeedType as CATBSTR
 FeedVal = 169.0
 FeedType="LOCAL"
 Call SubMotion1.SetFeedrate(FeedVal, FeedType)
Sub SetGotoPtPointCoordinates( iX, iY, iZ)
Defines coordinates on the ToolMotion.
If the type of the ToolMotion is not MfgSeqMotionPoint, nothing is done.
These coordinates are expressed in the current axis system.
Coordinates units are millimeters.
Example:
The following example sets coordinates on a Manufacturing Point To Point Toolmotion submotion1
 dim XCoord as double
 dim YCoord as double
 dim ZCoord as double
 XCoord = 10.0
 YCoord = 20.0
 ZCoord = 5.0
 Call SubMotion1.SetGotoPtPointCoordinates(XCoord, YCoord, ZCoord)
Sub SetPPWord( iMessage)
Adds a line containing iMessage to a Manufacturing PP Word ToolMotion.
Example:
The following example adds the line Message to the content of the Manufacturing PPWord Toolmotion firstToolmotion
 firstToolmotion.SetPPWord("Message")