Class TechOperationWithGCodeHelper
Helper methods for ICamIpcTechOperationWithGCode — the operation whose job assignment is an NC program. Mirrors ICamApiTechOperationWithGCode.
Inherited Members
Namespace: CAMIPC.DotnetHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class TechOperationWithGCodeHelper
Methods
AsWithGCode(ComWrapper<ICamIpcTechOperation>)
The operation seen as a G-code based one. The wrapper is null for an operation that machines geometry — check IsNull instead of calling and reading an error.
Declaration
public static ComWrapper<ICamIpcTechOperationWithGCode> AsWithGCode(this ComWrapper<ICamIpcTechOperation> operationCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamIpcTechOperation> | operationCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamIpcTechOperationWithGCode> |
LoadNCProgramFile(ComWrapper<ICamIpcTechOperationWithGCode>, string)
Load an NC program file (G-code, APT, ...) into the operation — the same action as the Open button of its Job assignment tab. Throws when the file is missing or cannot be read.
Declaration
public static void LoadNCProgramFile(this ComWrapper<ICamIpcTechOperationWithGCode> operationCom, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamIpcTechOperationWithGCode> | operationCom | |
| string | fileName |