Class IncrementalResolveSyntax
- Namespace
- Hi.NcParsers.LogicSyntaxs
- Assembly
- HiMech.dll
Resolves G91 incremental axis values to absolute in-place within Parsing and its sub-sections. Reads PositioningMode written by PositioningModeSyntax.
WorkingPathList specifies which JSON paths
contain axis values that need incremental-to-absolute conversion.
Default: [["Parsing"], ["Parsing", "G28"]].
All matching paths are converted.
Canned cycle paths (Parsing.G81, G82, G83, …) are intentionally excluded — their Z/R incremental semantics differ from normal axes (R is relative to init level, Z is relative to R-point). Resolution is handled by ResolveCycleCoordinates(JsonObject, Vec3d, double?, double?, double, double) inside each cycle syntax class, which runs before this syntax.
Uses AxisNames to determine which tags are motion axes. Traces backward nodes for last known ProgramXyz to resolve incremental values. After this syntax, all axis values in the working paths are absolute — ProgramXyzSyntax can consume them without incremental logic.
public class IncrementalResolveSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
IncrementalResolveSyntax
- Implements
- Inherited Members
- Extension Methods
Constructors
IncrementalResolveSyntax(List<List<string>>)
public IncrementalResolveSyntax(List<List<string>> workingPathList)
Parameters
IncrementalResolveSyntax(XElement)
public IncrementalResolveSyntax(XElement src)
Parameters
srcXElement
Properties
Default
public static IncrementalResolveSyntax Default { get; }
Property Value
Name
public string Name { get; }
Property Value
WorkingPathList
JSON paths where this syntax searches for axis values (X/Y/Z) to convert from incremental to absolute when G91 is active. Each path is a list of segments navigating nested JSON objects. All matching paths are converted.
public List<List<string>> WorkingPathList { get; }
Property Value
Examples
[["Parsing"]] → Parsing root (normal XYZ)
[["Parsing", "G28"]] → Parsing.G28 (G28 intermediate XYZ)
XName
public static string XName { get; }
Property Value
Methods
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>, NcDiagnosticProgress)
Build syntax arrangement into the
syntaxPieceNode in-place.
public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList, NcDiagnosticProgress ncDiagnosticProgress)
Parameters
syntaxPieceNodeLazyLinkedListNode<SyntaxPiece>ncDependencyListList<INcDependency>ncDiagnosticProgressNcDiagnosticProgress
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.