Class NcRunner
- Namespace
- Hi.Numerical.FilePlayers
- Assembly
- HiNc.dll
Provides functionality for running and processing NC code lines.
public class NcRunner
- Inheritance
-
NcRunner
- Inherited Members
- Extension Methods
Constructors
NcRunner(NcEnv, SessionMessageHost)
Initializes a new instance of the NcRunner class.
public NcRunner(NcEnv ncEnv, SessionMessageHost millingProcessMessage)
Parameters
ncEnv
NcEnvThe NC environment settings
millingProcessMessage
SessionMessageHostThe milling process message host
Properties
FileIndexOnRunCommand
Gets the current file index for run commands.
public int FileIndexOnRunCommand { get; }
Property Value
NcEnv
Gets the NC environment settings.
public NcEnv NcEnv { get; }
Property Value
NcLines
Gets the linked list of NC lines.
public LinkedList<NcLine> NcLines { get; }
Property Value
SessionMessageHost
External Hosted.
public SessionMessageHost SessionMessageHost { get; set; }
Property Value
Methods
RunRawNcLines(string, IEnumerable<string>, CancellationToken)
Runs raw NC lines and yields NcLine and Act pairs.
public IEnumerable<(NcLine NcLine, IAct Act)> RunRawNcLines(string relNcFilePath, IEnumerable<string> lines, CancellationToken cancellationToken)
Parameters
relNcFilePath
stringThe relative path of the NC file
lines
IEnumerable<string>The enumerable collection of NC code lines
cancellationToken
CancellationTokenCancellation token to cancel the operation
Returns
- IEnumerable<(NcLine NcLine, IAct Act)>
Enumerable of NcLine and Act pairs
RunToLineEnd()
Set EnumerablePlayer before use the function.
public void RunToLineEnd()