Class TechOperationHelper
Inheritance
TechOperationHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class TechOperationHelper
Methods
ApproachRule(ComWrapper<ICamApiTechOperation>)
Approach move before operation start
Declaration
public static string ApproachRule(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Calculated(ComWrapper<ICamApiTechOperation>)
The operation toolpath is calculated
Declaration
public static bool Calculated(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Enabled(ComWrapper<ICamApiTechOperation>)
The operation is blocked for calculation or not
Declaration
public static bool Enabled(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Export toolpath of the operation to any desired format
Declaration
public static void ExportToolpath(this ComWrapper<ICamApiTechOperation> operationCom, ICamApiExportToolpathReceiver toolpathReceiver)
Parameters
FullName(ComWrapper<ICamApiTechOperation>)
Slash divided full name of technology operation including parent groups
Declaration
public static string FullName(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
GetBlocksStatistics(ComWrapper<ICamApiTechOperation>)
Get block count statistics of the operation toolpath (lines, arcs, multi-gotos, feed blocks).
Returns zero values if toolpath is not calculated.
Declaration
public static TCamApiTechOperationBlocksStatistics GetBlocksStatistics(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
GetFirstChildOperation(ComWrapper<ICamApiTechOperation>, TCamApiReorderingMode)
Get first child operation in the operations tree
Declaration
public static ComWrapper<ICamApiTechOperation> GetFirstChildOperation(this ComWrapper<ICamApiTechOperation> operationCom, TCamApiReorderingMode reorderingMode)
Parameters
Returns
GetLengthStatistics(ComWrapper<ICamApiTechOperation>)
Get length statistics of the operation toolpath (work, rapid, return, and other movement lengths).
Returns zero values if toolpath is not calculated.
Declaration
public static TCamApiTechOperationLengthStatistics GetLengthStatistics(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
GetNextSiblingOperation(ComWrapper<ICamApiTechOperation>, TCamApiReorderingMode)
Get next sibling operation in the operations tree
Declaration
public static ComWrapper<ICamApiTechOperation> GetNextSiblingOperation(this ComWrapper<ICamApiTechOperation> operationCom, TCamApiReorderingMode reorderingMode)
Parameters
Returns
GetParentOperation(ComWrapper<ICamApiTechOperation>, TCamApiReorderingMode)
Get parent operation in the operations tree
Declaration
public static ComWrapper<ICamApiTechOperation> GetParentOperation(this ComWrapper<ICamApiTechOperation> operationCom, TCamApiReorderingMode reorderingMode)
Parameters
Returns
GetPropIterator(ComWrapper<ICamApiTechOperation>, string)
Get iterator for all properties of the operation
Declaration
public static ComWrapper<IST_CustomPropIterator> GetPropIterator(this ComWrapper<ICamApiTechOperation> operationCom, string pageId)
Parameters
Returns
GetTimeStatistics(ComWrapper<ICamApiTechOperation>)
Get time statistics of the operation toolpath (rapid, idle, work, auxiliary time in seconds).
Returns zero values if toolpath is not calculated.
Declaration
public static TCamApiTechOperationTimeStatistics GetTimeStatistics(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Returns true if the operation has its own calculated toolpath that can be exported.
Groups have no toolpath. Returns false if the operation is not calculated.
Declaration
public static bool HasToolpath(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Id(ComWrapper<ICamApiTechOperation>)
Get unique identifier of technology operation
Declaration
public static string Id(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
InitMachineEvaluator(ComWrapper<ICamApiTechOperation>, ComWrapper<ICamApiMachineEvaluator>)
Initialize machine evaluator to the state of this operation
Declaration
public static void InitMachineEvaluator(this ComWrapper<ICamApiTechOperation> operationCom, ComWrapper<ICamApiMachineEvaluator> evaluatorCom)
Parameters
IsCollisionError(ComWrapper<ICamApiTechOperation>)
Error - the nodes of the machine are in collision
Declaration
public static bool IsCollisionError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsCompensationError(ComWrapper<ICamApiTechOperation>)
Error - the compensation value is too large
Declaration
public static bool IsCompensationError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsError(ComWrapper<ICamApiTechOperation>)
Error in calculating toolpath or simulation
Declaration
public static bool IsError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsGougeError(ComWrapper<ICamApiTechOperation>)
Error - the part is gouged
Declaration
public static bool IsGougeError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsGroup(ComWrapper<ICamApiTechOperation>)
Returns true if the operation is any kind of groups and can have child operations
Declaration
public static bool IsGroup(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsHolderError(ComWrapper<ICamApiTechOperation>)
Error - the contact with the workpiece is on the holder
Declaration
public static bool IsHolderError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsMachiningResultCalculated(ComWrapper<ICamApiTechOperation>)
The machining result is calculated for this operation
Declaration
public static bool IsMachiningResultCalculated(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsPlungeError(ComWrapper<ICamApiTechOperation>)
Error - the tool is plunged at too large an angle
Declaration
public static bool IsPlungeError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsRapidError(ComWrapper<ICamApiTechOperation>)
Error - the contact with the workpiece is on the rapid feed
Declaration
public static bool IsRapidError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Error - the tool is overloaded
Declaration
public static bool IsToolOverloadError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsTravelError(ComWrapper<ICamApiTechOperation>)
Error - the axis is moved out of the limits
Declaration
public static bool IsTravelError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
IsTurnDirectionError(ComWrapper<ICamApiTechOperation>)
Error - the tool turn direction is incorrect
Declaration
public static bool IsTurnDirectionError(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
LCS(ComWrapper<ICamApiTechOperation>)
Local coordinate system for current operation
Declaration
public static TST3DMatrix LCS(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
LoadFromXmlProp(ComWrapper<ICamApiTechOperation>, ComWrapper<IST_XMLPropPointer>)
Update properties from XML (it can be its own XMLProp or XMLProp of another operation)
Declaration
public static void LoadFromXmlProp(this ComWrapper<ICamApiTechOperation> operationCom, ComWrapper<IST_XMLPropPointer> xmlProp)
Parameters
Machine(ComWrapper<ICamApiTechOperation>)
Declaration
public static ComWrapper<ICamApiMachine> Machine(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
MachineConfiguration(ComWrapper<ICamApiTechOperation>)
Machine configuration for the operation
Declaration
public static ComWrapper<ICamApiMachineConfiguration> MachineConfiguration(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Object to manage model formers of fixture
Declaration
public static ComWrapper<ICamApiModelFormer> ModelFormerFixtures(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Object to manage model formers of job assignment
Declaration
public static ComWrapper<ICamApiModelFormer> ModelFormerJobAssignment(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Object to manage model formers of part
Declaration
public static ComWrapper<ICamApiModelFormer> ModelFormerPart(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Object to manage model formers of restrictions
Declaration
public static ComWrapper<ICamApiModelFormer> ModelFormerRestrictions(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Object to manage model formers of workpiece
Declaration
public static ComWrapper<ICamApiModelFormer> ModelFormerWorkpiece(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Name(ComWrapper<ICamApiTechOperation>)
Get name of technology operation
Declaration
public static string Name(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
NeedDeleteChips(ComWrapper<ICamApiTechOperation>)
Whether chips need to be deleted before this operation
Declaration
public static bool NeedDeleteChips(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
OperationTag(ComWrapper<ICamApiTechOperation>)
Invisible textual tag of operation. Empty by default. Can be used by external code for custom purposes.
Declaration
public static string OperationTag(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
OperationType(ComWrapper<ICamApiTechOperation>)
Type identifier of the technology operation
Declaration
public static string OperationType(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
PartIndex(ComWrapper<ICamApiTechOperation>)
Index of the Part inside Technologist to which this operation relates
Declaration
public static int PartIndex(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
ReturnRule(ComWrapper<ICamApiTechOperation>)
Return move after operation end
Declaration
public static string ReturnRule(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
SaveToXmlProp(ComWrapper<ICamApiTechOperation>)
Save operation properties to XML structure
Declaration
public static ComWrapper<IST_XMLPropPointer> SaveToXmlProp(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
SetApproachRule(ComWrapper<ICamApiTechOperation>, string)
Set approach move before operation start
Declaration
public static void SetApproachRule(this ComWrapper<ICamApiTechOperation> operationCom, string value)
Parameters
| Type |
Name |
Description |
| ComWrapper<ICamApiTechOperation> |
operationCom |
|
| string |
value |
CLData line with approach move. Available formats:
- [AUTO] -> avoid collisions
- [FromPrev] -> approach from previous position
- [FromRoot] -> approach from root position
- [SHORT] -> short approach
- [Default] -> default approach
- G53 A1(2) A2(3) A3(4) A4(5) A5(6) A6(7) E1(1) -> custom approach by absolute axis positions in machine coordinate system
|
SetName(ComWrapper<ICamApiTechOperation>, string)
Set name of technology operation
Declaration
public static void SetName(this ComWrapper<ICamApiTechOperation> operationCom, string value)
Parameters
SetOperationTag(ComWrapper<ICamApiTechOperation>, string)
Set invisible textual tag of operation
Declaration
public static void SetOperationTag(this ComWrapper<ICamApiTechOperation> operationCom, string value)
Parameters
SetReturnRule(ComWrapper<ICamApiTechOperation>, string)
Set return move after operation end
Declaration
public static void SetReturnRule(this ComWrapper<ICamApiTechOperation> operationCom, string value)
Parameters
| Type |
Name |
Description |
| ComWrapper<ICamApiTechOperation> |
operationCom |
|
| string |
value |
CLData line with retract move. Available formats:
- [AUTO] -> avoid collisions
- [FromPrev] -> retract to root position
- [FromRoot] -> retract to safe position
- [SHORT] -> short retract
- [Default] -> default retract
- G53 A1(2) A2(3) A3(4) A4(5) A5(6) A6(7) E1(1) -> custom retract by absolute axis positions in machine coordinate system
|
SetupStageIndex(ComWrapper<ICamApiTechOperation>)
Index of the Setup stage inside Technologist to which this operation relates
Declaration
public static int SetupStageIndex(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Simulated(ComWrapper<ICamApiTechOperation>)
The operation is simulated
Declaration
public static bool Simulated(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Technologist(ComWrapper<ICamApiTechOperation>)
Owning Technologist of the operation. You can try to cast it to (ICamApiTechnologist)
Declaration
public static ComWrapper<ICamApiTechOperationOwner> Technologist(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Machining tool of the operation. You can cast different interfaces to it depend on exact tool type
Declaration
public static ComWrapper<ICamApiMachiningTool> ToolEntity(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
Units(ComWrapper<ICamApiTechOperation>)
Measurements of the operation
Declaration
public static TSTSystemUnits Units(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
WorkpieceCoordinateSystem(ComWrapper<ICamApiTechOperation>)
Workpiece coordinate system of the operation
Declaration
public static ComWrapper<ICamApiWorkpieceCoordinateSystem> WorkpieceCoordinateSystem(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns
XMLProp(ComWrapper<ICamApiTechOperation>)
Value in XML-file, describing operation. Call LoadFromXmlProp to apply changes to the operation
Declaration
public static ComWrapper<IST_XMLPropPointer> XMLProp(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
Returns