Table of Contents

Class HardNcRunner

Namespace
Hi.Numerical.FilePlayers
Assembly
HiNc.dll

Provides functionality for running and processing NC code lines.

public class HardNcRunner : IControlRunner
Inheritance
HardNcRunner
Implements
Inherited Members
Extension Methods

Properties

NcLines

Gets the linked list of NC lines.

public LinkedList<HardNcLine> NcLines { get; }

Property Value

LinkedList<HardNcLine>

Methods

RunControlLines(string, IEnumerable<string>, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)

Runs raw NC lines and yields NcLine and Act pairs.

public IEnumerable<SourcedActEntry> RunControlLines(string relNcFilePath, IEnumerable<string> lines, MachiningSession machiningSession, StepDiagnosticProgress stepDiagnosticProgress, NcDiagnosticProgress ncDiagnosticProgress, CancellationToken cancellationToken)

Parameters

relNcFilePath string

The relative path of the NC file

lines IEnumerable<string>

The enumerable collection of NC code lines

machiningSession MachiningSession

The machining session that owns runtime state for this run.

stepDiagnosticProgress StepDiagnosticProgress

Progress sink for cutter-location strip updates emitted during the run.

ncDiagnosticProgress NcDiagnosticProgress

NC-pipeline sink; receives the parse progress / diagnostics of this legacy runner.

cancellationToken CancellationToken

Cancellation token to cancel the operation

Returns

IEnumerable<SourcedActEntry>

Enumerable of NcLine and Act pairs