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

FileIndexOnRunCommand

Gets the current file index for run commands.

public int FileIndexOnRunCommand { get; }

Property Value

int

NcLines

Gets the linked list of NC lines.

public LinkedList<HardNcLine> NcLines { get; }

Property Value

LinkedList<HardNcLine>

PacePlayer

Gets the pace player for controlling playback.

public PacePlayer PacePlayer { get; }

Property Value

PacePlayer

Methods

ResetFileIndex()

Resets the file index to zero.

public void ResetFileIndex()

RunControlLines(string, IEnumerable<string>, SessionMessageHost, CancellationToken)

Runs raw NC lines and yields NcLine and Act pairs.

public IEnumerable<SourceCommandActEntry> RunControlLines(string relNcFilePath, IEnumerable<string> lines, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)

Parameters

relNcFilePath string

The relative path of the NC file

lines IEnumerable<string>

The enumerable collection of NC code lines

sessionMessageHost SessionMessageHost
cancellationToken CancellationToken

Cancellation token to cancel the operation

Returns

IEnumerable<SourceCommandActEntry>

Enumerable of NcLine and Act pairs

RunToLineEnd()

Set EnumerablePlayer before use the function.

public void RunToLineEnd()