Class MachineEvaluatorHelper
Helper methods for ICamApiMachineEvaluator
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class MachineEvaluatorHelper
Methods
CalcNextPos(ComWrapper<ICamApiMachineEvaluator>, TST5DPoint, bool, bool, bool)
Calculate machine position by 5D point and AngleAroundTool. Result in NextPos
Declaration
public static bool CalcNextPos(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, TST5DPoint p, bool alternate, bool checkAllVariants, bool ignoreRailsLimits)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | Machine evaluator |
| TST5DPoint | p | 5D point |
| bool | alternate | take alternative solution |
| bool | checkAllVariants | check all solutions |
| bool | ignoreRailsLimits | ignore rails limits |
Returns
| Type | Description |
|---|---|
| bool | true if succeeded |
CalcNextPos5D(ComWrapper<ICamApiMachineEvaluator>, TST5DPoint, bool, bool, bool)
Calculate machine position by 5D point. Result in NextPos
Declaration
public static bool CalcNextPos5D(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, TST5DPoint p, bool alternate, bool checkAllVariants, bool ignoreRailsLimits)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | Machine evaluator |
| TST5DPoint | p | 5D point |
| bool | alternate | take alternative solution |
| bool | checkAllVariants | check all solutions |
| bool | ignoreRailsLimits | ignore rails limits |
Returns
| Type | Description |
|---|---|
| bool | true if succeeded |
CalcNextPos6D(ComWrapper<ICamApiMachineEvaluator>, TST3DMatrix, bool, bool)
Calculate machine position by 6D point. Result in NextPos
Declaration
public static bool CalcNextPos6D(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, TST3DMatrix p, bool alternate, bool checkAllVariants)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | Machine evaluator |
| TST3DMatrix | p | 6D point |
| bool | alternate | take alternative solution |
| bool | checkAllVariants | check all solutions |
Returns
| Type | Description |
|---|---|
| bool | true if succeeded |
GeomToNC(ComWrapper<ICamApiMachineEvaluator>, TST3DMatrix)
Convert matrix from geometry to NC coordinates
Declaration
public static TST3DMatrix GeomToNC(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, TST3DMatrix matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | |
| TST3DMatrix | matrix |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
GetAbsoluteMatrix(ComWrapper<ICamApiMachineEvaluator>)
Get the absolute position of the current tool's coordinate system relative to the current workpiece coordinate system
Declaration
public static TST3DMatrix GetAbsoluteMatrix(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
GetCurrentWorkpieceCSID(ComWrapper<ICamApiMachineEvaluator>)
Returns the current workpiece CS (G54) identifier, e.g. "G54"
Declaration
public static string GetCurrentWorkpieceCSID(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom |
Returns
| Type | Description |
|---|---|
| string |
GetCurrentWorkpieceCSMatrix(ComWrapper<ICamApiMachineEvaluator>)
Returns the current workpiece CS (G54) matrix relative to the workpiece connector
Declaration
public static TST3DMatrix GetCurrentWorkpieceCSMatrix(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
GetCurrentWorkpieceCSWorldMatrix(ComWrapper<ICamApiMachineEvaluator>)
Returns the current workpiece CS (G54) matrix relative to the world CS. The result depends on TCPM mode.
Declaration
public static TST3DMatrix GetCurrentWorkpieceCSWorldMatrix(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
GetWorldWorkpieceConnectorMatrix(ComWrapper<ICamApiMachineEvaluator>, int)
Get the world position of workpiece connector with specific index
Declaration
public static TST3DMatrix GetWorldWorkpieceConnectorMatrix(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, int workpieceConnectorIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | Machine evaluator |
| int | workpieceConnectorIndex | Index of the workpiece connector |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
NCToGeom(ComWrapper<ICamApiMachineEvaluator>, TST3DMatrix)
Convert matrix from NC to geometry coordinates
Declaration
public static TST3DMatrix NCToGeom(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, TST3DMatrix matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | |
| TST3DMatrix | matrix |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
SetNextPos(ComWrapper<ICamApiMachineEvaluator>, bool)
Set the machine to the position by the previous call of CalcNextPos
Declaration
public static void SetNextPos(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, bool rotaryOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | Machine evaluator |
| bool | rotaryOnly | If true, only rotary axes are moved |
SetTCPMEnabled(ComWrapper<ICamApiMachineEvaluator>, bool)
Set state of the Tool center point management (TCPM) mode
Declaration
public static void SetTCPMEnabled(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom | |
| bool | value |
TCPMEnabled(ComWrapper<ICamApiMachineEvaluator>)
Current state of the Tool center point management (TCPM) mode
Declaration
public static bool TCPMEnabled(this ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMachineEvaluator> | evaluatorCom |
Returns
| Type | Description |
|---|---|
| bool |