fix bug of G53.1 and remove NcEnv.SetToolHeightCompensationOnFeatureNormal property.

This commit is contained in:
2026-03-19 17:25:33 +08:00
parent 2c586333b6
commit 52a3412ecb
826 changed files with 41648 additions and 6499 deletions
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class SoftNcRunner | HiAPI-C# 2025 ">
<meta name="description" content="Configurable NC Runner.">
<link rel="icon" href="../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
@@ -97,11 +97,12 @@ Class SoftNcRunner
<dl><dt>Assembly</dt><dd>HiMech.dll</dd></dl>
</div>
<div class="markdown summary"></div>
<div class="markdown summary"><p>Configurable NC Runner.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class SoftNcRunner : IControlRunner</code></pre>
<pre><code class="lang-csharp hljs">public class SoftNcRunner : IControlRunner, IMakeXmlSource</code></pre>
</div>
@@ -119,6 +120,7 @@ Class SoftNcRunner
<dt>Implements</dt>
<dd>
<div><a class="xref" href="Hi.Numerical.IControlRunner.html">IControlRunner</a></div>
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
</dd>
</dl>
@@ -179,6 +181,71 @@ Class SoftNcRunner
<h2 class="section" id="constructors">Constructors
</h2>
<a id="Hi_NcParsers_SoftNcRunner__ctor_" data-uid="Hi.NcParsers.SoftNcRunner.#ctor*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner__ctor" data-uid="Hi.NcParsers.SoftNcRunner.#ctor">
SoftNcRunner()
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SoftNcRunner()</code></pre>
</div>
<a id="Hi_NcParsers_SoftNcRunner__ctor_" data-uid="Hi.NcParsers.SoftNcRunner.#ctor*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner__ctor_System_Xml_Linq_XElement_System_String_System_String_" data-uid="Hi.NcParsers.SoftNcRunner.#ctor(System.Xml.Linq.XElement,System.String,System.String)">
SoftNcRunner(XElement, string, string)
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SoftNcRunner(XElement src, string baseDirectory, string relFile)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd></dd>
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
@@ -246,10 +313,10 @@ Class SoftNcRunner
<a id="Hi_NcParsers_SoftNcRunner_NcActuationList_" data-uid="Hi.NcParsers.SoftNcRunner.NcActuationList*"></a>
<a id="Hi_NcParsers_SoftNcRunner_HeidenhainNcRunner_" data-uid="Hi.NcParsers.SoftNcRunner.HeidenhainNcRunner*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_NcActuationList" data-uid="Hi.NcParsers.SoftNcRunner.NcActuationList">
NcActuationList
<h3 id="Hi_NcParsers_SoftNcRunner_HeidenhainNcRunner" data-uid="Hi.NcParsers.SoftNcRunner.HeidenhainNcRunner">
HeidenhainNcRunner
</h3>
@@ -257,7 +324,7 @@ Class SoftNcRunner
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;INcActuation&gt; NcActuationList { get; set; }</code></pre>
<pre><code class="lang-csharp hljs">public static SoftNcRunner HeidenhainNcRunner { get; }</code></pre>
</div>
@@ -266,7 +333,100 @@ Class SoftNcRunner
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.NcParsers.Actuations.INcActuation.html">INcActuation</a>&gt;</dt>
<dt><a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_MazakNcRunner_" data-uid="Hi.NcParsers.SoftNcRunner.MazakNcRunner*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_MazakNcRunner" data-uid="Hi.NcParsers.SoftNcRunner.MazakNcRunner">
MazakNcRunner
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SoftNcRunner MazakNcRunner { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_NcDependencyList_" data-uid="Hi.NcParsers.SoftNcRunner.NcDependencyList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_NcDependencyList" data-uid="Hi.NcParsers.SoftNcRunner.NcDependencyList">
NcDependencyList
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;INcDependency&gt; NcDependencyList { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.NcParsers.Dependencys.INcDependency.html">INcDependency</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_NcInitializationList_" data-uid="Hi.NcParsers.SoftNcRunner.NcInitializationList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_NcInitializationList" data-uid="Hi.NcParsers.SoftNcRunner.NcInitializationList">
NcInitializationList
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;INcInitializer&gt; NcInitializationList { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.NcParsers.Initializers.INcInitializer.html">INcInitializer</a>&gt;</dt>
<dd></dd>
</dl>
@@ -328,7 +488,7 @@ Class SoftNcRunner
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.NcParsers.Syntaxs.Derived.INcSyntax.html">INcSyntax</a>&gt;</dt>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.NcParsers.Syntaxs.INcSyntax.html">INcSyntax</a>&gt;</dt>
<dd></dd>
</dl>
@@ -370,14 +530,10 @@ Class SoftNcRunner
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_NcParsers_SoftNcRunner_SiemensNcRunner_" data-uid="Hi.NcParsers.SoftNcRunner.SiemensNcRunner*"></a>
<a id="Hi_NcParsers_SoftNcRunner_GetSemanticPieceLinkedList_" data-uid="Hi.NcParsers.SoftNcRunner.GetSemanticPieceLinkedList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_GetSemanticPieceLinkedList_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_SessionMessageHost_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetSemanticPieceLinkedList(System.String,System.Collections.Generic.IEnumerable{System.String},Hi.MachiningProcs.SessionMessageHost,System.Threading.CancellationToken)">
GetSemanticPieceLinkedList(string, IEnumerable&lt;string&gt;, SessionMessageHost, CancellationToken)
<h3 id="Hi_NcParsers_SoftNcRunner_SiemensNcRunner" data-uid="Hi.NcParsers.SoftNcRunner.SiemensNcRunner">
SiemensNcRunner
</h3>
@@ -385,7 +541,73 @@ Class SoftNcRunner
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public LazyLinkedList&lt;SemanticPiece&gt; GetSemanticPieceLinkedList(string relFilePath, IEnumerable&lt;string&gt; lines, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public static SoftNcRunner SiemensNcRunner { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_XName_" data-uid="Hi.NcParsers.SoftNcRunner.XName*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_XName" data-uid="Hi.NcParsers.SoftNcRunner.XName">
XName
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string XName { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_NcParsers_SoftNcRunner_GetFullSyntaxPieceLinkedList_" data-uid="Hi.NcParsers.SoftNcRunner.GetFullSyntaxPieceLinkedList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_GetFullSyntaxPieceLinkedList_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_SessionMessageHost_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetFullSyntaxPieceLinkedList(System.String,System.Collections.Generic.IEnumerable{System.String},Hi.MachiningProcs.SessionMessageHost,System.Threading.CancellationToken)">
GetFullSyntaxPieceLinkedList(string, IEnumerable&lt;string&gt;, SessionMessageHost, CancellationToken)
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public LazyLinkedList&lt;SyntaxPiece&gt; GetFullSyntaxPieceLinkedList(string relFilePath, IEnumerable&lt;string&gt; lines, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -402,7 +624,7 @@ Class SoftNcRunner
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Common.Collections.LazyLinkedList-1.html">LazyLinkedList</a>&lt;<a class="xref" href="Hi.NcParsers.Semantics.SemanticPiece.html">SemanticPiece</a>&gt;</dt>
<dt><a class="xref" href="Hi.Common.Collections.LazyLinkedList-1.html">LazyLinkedList</a>&lt;<a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">SyntaxPiece</a>&gt;</dt>
<dd></dd>
</dl>
@@ -416,10 +638,10 @@ Class SoftNcRunner
<a id="Hi_NcParsers_SoftNcRunner_GetSentenceActEntrys_" data-uid="Hi.NcParsers.SoftNcRunner.GetSentenceActEntrys*"></a>
<a id="Hi_NcParsers_SoftNcRunner_GetSourcedActEntrys_" data-uid="Hi.NcParsers.SoftNcRunner.GetSourcedActEntrys*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_GetSentenceActEntrys_Hi_Common_Collections_LazyLinkedList_Hi_NcParsers_Semantics_SemanticPiece__Hi_MachiningProcs_SessionMessageHost_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetSentenceActEntrys(Hi.Common.Collections.LazyLinkedList{Hi.NcParsers.Semantics.SemanticPiece},Hi.MachiningProcs.SessionMessageHost,System.Threading.CancellationToken)">
GetSentenceActEntrys(LazyLinkedList&lt;SemanticPiece&gt;, SessionMessageHost, CancellationToken)
<h3 id="Hi_NcParsers_SoftNcRunner_GetSourcedActEntrys_Hi_Common_Collections_LazyLinkedList_Hi_NcParsers_Syntaxs_SyntaxPiece__Hi_MachiningProcs_SessionMessageHost_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetSourcedActEntrys(Hi.Common.Collections.LazyLinkedList{Hi.NcParsers.Syntaxs.SyntaxPiece},Hi.MachiningProcs.SessionMessageHost,System.Threading.CancellationToken)">
GetSourcedActEntrys(LazyLinkedList&lt;SyntaxPiece&gt;, SessionMessageHost, CancellationToken)
</h3>
@@ -427,12 +649,12 @@ Class SoftNcRunner
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SentenceActEntry&gt; GetSentenceActEntrys(LazyLinkedList&lt;SemanticPiece&gt; semanticPieceLinkedList, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; GetSourcedActEntrys(LazyLinkedList&lt;SyntaxPiece&gt; syntaxPieceLinkedList, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>semanticPieceLinkedList</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedList-1.html">LazyLinkedList</a>&lt;<a class="xref" href="Hi.NcParsers.Semantics.SemanticPiece.html">SemanticPiece</a>&gt;</dt>
<dt><code>syntaxPieceLinkedList</code> <a class="xref" href="Hi.Common.Collections.LazyLinkedList-1.html">LazyLinkedList</a>&lt;<a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">SyntaxPiece</a>&gt;</dt>
<dd></dd>
<dt><code>sessionMessageHost</code> <a class="xref" href="Hi.MachiningProcs.SessionMessageHost.html">SessionMessageHost</a></dt>
<dd></dd>
@@ -442,7 +664,7 @@ Class SoftNcRunner
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Numerical.SentenceActEntry.html">SentenceActEntry</a>&gt;</dt>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Numerical.SourcedActEntry.html">SourcedActEntry</a>&gt;</dt>
<dd></dd>
</dl>
@@ -456,6 +678,57 @@ Class SoftNcRunner
<a id="Hi_NcParsers_SoftNcRunner_MakeXmlSource_" data-uid="Hi.NcParsers.SoftNcRunner.MakeXmlSource*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_MakeXmlSource_System_String_System_String_System_Boolean_" data-uid="Hi.NcParsers.SoftNcRunner.MakeXmlSource(System.String,System.String,System.Boolean)">
MakeXmlSource(string, string, bool)
</h3>
<div class="markdown level1 summary"><p>Creates an XML representation of the object.
This method may also generate additional resources such as related files.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The base directory for resolving relative paths</p>
</dd>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The relative file path for the XML source</p>
</dd>
<dt><code>exhibitionOnly</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>if true, the extended file creation is suppressed.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>An XML element representing the object's state</p>
</dd>
</dl>
<h4 class="section" id="Hi_NcParsers_SoftNcRunner_MakeXmlSource_System_String_System_String_System_Boolean__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The <code class="paramref">baseDirectory</code> is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.</p>
</div>
<a id="Hi_NcParsers_SoftNcRunner_ResetFileIndex_" data-uid="Hi.NcParsers.SoftNcRunner.ResetFileIndex*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_ResetFileIndex" data-uid="Hi.NcParsers.SoftNcRunner.ResetFileIndex">
@@ -495,7 +768,7 @@ Class SoftNcRunner
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SentenceActEntry&gt; RunControlLines(string relFilePath, IEnumerable&lt;string&gt; lines, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; RunControlLines(string relFilePath, IEnumerable&lt;string&gt; lines, SessionMessageHost sessionMessageHost, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -515,7 +788,7 @@ Class SoftNcRunner
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Numerical.SentenceActEntry.html">SentenceActEntry</a>&gt;</dt>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Numerical.SourcedActEntry.html">SourcedActEntry</a>&gt;</dt>
<dd><p>Enumerable of source sentence and Act pairs</p>
</dd>
</dl>