Class TechOperationWithGCodeHelper
Helper methods for ICamApiTechOperationWithGCode
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class TechOperationWithGCodeHelper
Methods
AsWithGCode(ComWrapper<ICamApiTechOperation>)
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<ICamApiTechOperationWithGCode> AsWithGCode(this ComWrapper<ICamApiTechOperation> operationCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiTechOperation> | operationCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiTechOperationWithGCode> |
LoadNCProgramFile(ComWrapper<ICamApiTechOperationWithGCode>, 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<ICamApiTechOperationWithGCode> operationCom, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiTechOperationWithGCode> | operationCom | |
| string | fileName |