Table of Contents

Class NcConversion

Namespace
Hi.NcParsers.NcWriteback
Assembly
HiMech.dll

Result of one Convert(IEnumerable<SyntaxPiece>, NcDstPieceFactory, NcDiagnosticProgress) run: the destination SyntaxPiece stream (execution order; each piece's BlockText holds the produced NC text) plus the src↔dst NcPieceMap. Text output is stage two — ToLines(IEnumerable<SyntaxPiece>) over DstPieces. Retained by the session (see MachiningSession.NcConversions) so a GUI can walk the mapping (src line ↔ dst line) after the conversion.

public class NcConversion
Inheritance
NcConversion
Inherited Members
Extension Methods

Properties

DstFilePath

Destination NC file path the text lines are written to; null when not file-bound.

public string DstFilePath { get; set; }

Property Value

string

DstPieces

Destination pieces in execution (= file) order.

public IReadOnlyList<SyntaxPiece> DstPieces { get; }

Property Value

IReadOnlyList<SyntaxPiece>

Map

Bidirectional src↔dst mapping over the piece streams.

public NcPieceMap Map { get; }

Property Value

NcPieceMap

SrcFilePath

Source NC/CL file path the converted pieces came from; null until known.

public string SrcFilePath { get; set; }

Property Value

string

Methods

Add(SyntaxPiece, SyntaxPiece)

Appends dstPiece to the destination stream and registers its derivation from srcPiece in Map (which also stamps the SourceRef section).

public void Add(SyntaxPiece srcPiece, SyntaxPiece dstPiece)

Parameters

srcPiece SyntaxPiece
dstPiece SyntaxPiece