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
DstPieces
Destination pieces in execution (= file) order.
public IReadOnlyList<SyntaxPiece> DstPieces { get; }
Property Value
Map
Bidirectional src↔dst mapping over the piece streams.
public NcPieceMap Map { get; }
Property Value
SrcFilePath
Source NC/CL file path the converted pieces came from; null until known.
public string SrcFilePath { get; set; }
Property Value
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
srcPieceSyntaxPiecedstPieceSyntaxPiece