deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.

This commit is contained in:
2026-08-27 14:51:37 +08:00
parent 1fc510af5e
commit 2a98ae7556
1468 changed files with 182837 additions and 18888 deletions
@@ -102,7 +102,7 @@ Class SoftNcRunner
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class SoftNcRunner : IControlRunner, IMakeXmlSource</code></pre>
<pre><code class="lang-csharp hljs">public class SoftNcRunner : INcRunner, IMakeXmlSource</code></pre>
</div>
@@ -119,7 +119,7 @@ Class SoftNcRunner
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="Hi.Numerical.IControlRunner.html">IControlRunner</a></div>
<div><a class="xref" href="Hi.Numerical.INcRunner.html">INcRunner</a></div>
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
</dd>
</dl>
@@ -214,20 +214,20 @@ Class SoftNcRunner
<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_System_IProgress_System_Object__System_Object___" data-uid="Hi.NcParsers.SoftNcRunner.#ctor(System.Xml.Linq.XElement,System.String,System.String,System.IProgress{System.Object},System.Object[])">
SoftNcRunner(XElement, string, string, IProgress&lt;object&gt;, object[])
<h3 id="Hi_NcParsers_SoftNcRunner__ctor_System_Xml_Linq_XElement_System_String_System_String_System_IProgress_Hi_Common_Messages_IMessage__System_Object___" data-uid="Hi.NcParsers.SoftNcRunner.#ctor(System.Xml.Linq.XElement,System.String,System.String,System.IProgress{Hi.Common.Messages.IMessage},System.Object[])">
SoftNcRunner(XElement, string, string, IProgress&lt;IMessage&gt;, object[])
</h3>
<div class="markdown level1 summary"><p>Reconstructs a <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a> from a project XML element.
Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_NcDependencyList">NcDependencyList</a>, <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_Segmenter">Segmenter</a>,
Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList">PipelineNcDependencyList</a>, <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_Segmenter">Segmenter</a>,
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_NcInitializationList">NcInitializationList</a>, <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_NcSyntaxList">NcSyntaxList</a>,
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_NcSemanticList">NcSemanticList</a>) is rehydrated via <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public SoftNcRunner(XElement src, string baseDirectory, string relFile, IProgress&lt;object&gt; progress, object[] res = null)</code></pre>
<pre><code class="lang-csharp hljs">public SoftNcRunner(XElement src, string baseDirectory, string relFile, IProgress&lt;IMessage&gt; progress, object[] res = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -241,7 +241,7 @@ Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcPa
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Project file path relative to <code class="paramref">baseDirectory</code>.</p>
</dd>
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</dt>
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd><p>Diagnostic sink propagated to nested factories.</p>
</dd>
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
@@ -363,39 +363,6 @@ Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcPa
<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"><p>External configuration providers consumed by syntaxes/semantics
(machine axes, tool offsets, coordinate tables, block-skip flags, etc.).</p>
</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">
@@ -494,6 +461,41 @@ Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcPa
<a id="Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList_" data-uid="Hi.NcParsers.SoftNcRunner.PipelineNcDependencyList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList" data-uid="Hi.NcParsers.SoftNcRunner.PipelineNcDependencyList">
PipelineNcDependencyList
</h3>
<div class="markdown level1 summary"><p>External configuration providers consumed by syntaxes/semantics
(machine axes, tool offsets, coordinate tables, block-skip flags, etc.).
May contain <a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyProxy.html">INcDependencyProxy</a> placeholders — see
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList">GetEffectiveNcDependencyList()</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;INcDependency&gt; PipelineNcDependencyList { 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_Segmenter_" data-uid="Hi.NcParsers.SoftNcRunner.Segmenter*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_Segmenter" data-uid="Hi.NcParsers.SoftNcRunner.Segmenter">
@@ -638,7 +640,7 @@ Each pipeline list (<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcPa
<div class="markdown level1 summary"><p>Configures this <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a> to match the kinematic
<code class="paramref">chain</code> of a machine tool. Registers every axis
present on the chain into the <a class="xref" href="Hi.NcParsers.Dependencys.IMachineAxisConfig.html">IMachineAxisConfig</a> in
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_NcDependencyList">NcDependencyList</a> (linear or rotary, derived from
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList">PipelineNcDependencyList</a> (linear or rotary, derived from
whether the chain's transformer implements
<a class="xref" href="Hi.Mech.Topo.IDynamicRotation.html">IDynamicRotation</a>). When the chain carries any rotary
axis, a <a class="xref" href="Hi.NcParsers.Dependencys.SystemWired.NcKinematicsDependency.html">NcKinematicsDependency</a> is appended so that
@@ -648,6 +650,14 @@ orientation; its <a class="xref" href="Hi.NcParsers.Dependencys.SystemWired.NcKi
is intentionally left null — the owning project service wires it up
after the solver instance is available (see
<code>LocalProjectService.BuildCoordinateConverter</code>).</p>
<p>
The axis / home machine config is read from
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList">GetEffectiveNcDependencyList()</a>, so a proxied parameter table
resolves to the host's materialized instance — call this only after the
proxies' host is wired. The <a class="xref" href="Hi.NcParsers.Dependencys.SystemWired.NcKinematicsDependency.html">NcKinematicsDependency</a>, by
contrast, is a runner-level pipeline dependency and is appended to the
runner's own <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList">PipelineNcDependencyList</a> below.
</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -712,40 +722,38 @@ and within a bundle slot the bundle's <code>SyntaxList</code> order.</p>
<a id="Hi_NcParsers_SoftNcRunner_FromLegacyNcEnvXml_" data-uid="Hi.NcParsers.SoftNcRunner.FromLegacyNcEnvXml*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_FromLegacyNcEnvXml_System_Xml_Linq_XElement_Hi_Mech_IMachiningChain_" data-uid="Hi.NcParsers.SoftNcRunner.FromLegacyNcEnvXml(System.Xml.Linq.XElement,Hi.Mech.IMachiningChain)">
FromLegacyNcEnvXml(XElement, IMachiningChain)
<h3 id="Hi_NcParsers_SoftNcRunner_FromLegacyNcEnvXml_System_Xml_Linq_XElement_" data-uid="Hi.NcParsers.SoftNcRunner.FromLegacyNcEnvXml(System.Xml.Linq.XElement)">
FromLegacyNcEnvXml(XElement)
</h3>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a> from legacy <code>HardNcEnv</code> XML.
Picks the brand-specific runner by the <code>CncBrand</code> element and
populates dependencies from the legacy XML values. When a
<code class="paramref">chain</code> is provided, also calls
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_ConfigureByMachiningChain_Hi_Mech_IMachiningChain_">ConfigureByMachiningChain(IMachiningChain)</a> so the runner's axis
configuration and kinematics dependency reflect the machine tool
loaded alongside the legacy project.
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a> brand preset from legacy
<code>HardNcEnv</code> XML, picked by the <code>CncBrand</code> element. The returned
runner carries proxy placeholders for both per-case data and the
(Fanuc-family) parameter table, so machine config and per-case values are
<em>not</em> populated here — the owning project wires the proxies to its
host, then calls <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PopulateLegacyMachineConfig_System_Xml_Linq_XElement_System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__">PopulateLegacyMachineConfig(XElement, List&lt;INcDependency&gt;)</a>,
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_ConfigureByMachiningChain_Hi_Mech_IMachiningChain_">ConfigureByMachiningChain(IMachiningChain)</a>, and
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PopulateLegacyPerCaseData_System_Xml_Linq_XElement_System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__">PopulateLegacyPerCaseData(XElement, List&lt;INcDependency&gt;)</a> against the resolved host tables.
Remove this region when <code>HardNcEnv</code> is fully replaced.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static SoftNcRunner FromLegacyNcEnvXml(XElement ncEnvXml, IMachiningChain chain = null)</code></pre>
<pre><code class="lang-csharp hljs">public static SoftNcRunner FromLegacyNcEnvXml(XElement ncEnvXml)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>ncEnvXml</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>The inner XML element of the legacy <code>HardNcEnv</code>.</p>
</dd>
<dt><code>chain</code> <a class="xref" href="Hi.Mech.IMachiningChain.html">IMachiningChain</a></dt>
<dd><p>Optional machining chain for axis/kinematics configuration.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a></dt>
<dd><p>A configured <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a>.</p>
<dd><p>An unconfigured brand-preset <a class="xref" href="Hi.NcParsers.SoftNcRunner.html">SoftNcRunner</a>.</p>
</dd>
</dl>
@@ -759,10 +767,55 @@ Remove this region when <code>HardNcEnv</code> is fully replaced.</p>
<a id="Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList_" data-uid="Hi.NcParsers.SoftNcRunner.GetEffectiveNcDependencyList*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList" data-uid="Hi.NcParsers.SoftNcRunner.GetEffectiveNcDependencyList">
GetEffectiveNcDependencyList()
</h3>
<div class="markdown level1 summary"><p>Resolves every <a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyProxy.html">INcDependencyProxy</a> in
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_PipelineNcDependencyList">PipelineNcDependencyList</a> to the concrete dependency it stands in
for (via <a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyProxy.html#Hi_NcParsers_Dependencys_INcDependencyProxy_GetNcDependency">GetNcDependency()</a>), leaving every
non-proxy entry in place. Order is preserved, so downstream
<code>OfType&lt;T&gt;().FirstOrDefault()</code> lookups behave exactly as for a
proxy-free runner; entries a proxy resolves to <code>null</code> are dropped.</p>
<p>
Proxies must have their host wired
(<a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyProxy.html#Hi_NcParsers_Dependencys_INcDependencyProxy_InitNcDependencyHost_Hi_NcParsers_Dependencys_INcDependencyListHost_">InitNcDependencyHost(INcDependencyListHost)</a>) before this is
called. <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_RunNcLines_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_MachiningSession_Hi_MachiningProcs_StepDiagnosticProgress_Hi_NcParsers_NcDiagnosticProgress_System_Threading_CancellationToken_">RunNcLines(string, IEnumerable&lt;string&gt;, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)</a> resolves the list once per session
and caches it on <a class="xref" href="Hi.MachiningProcs.NcRunnerSessionState.html">NcRunnerSessionState</a>, so each
proxy maps to a single stable instance for the whole session and every
pipeline stage sees the same dependencies.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;INcDependency&gt; GetEffectiveNcDependencyList()</code></pre>
</div>
<h4 class="section">Returns</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_GetSourcedActEntrysFromNode_" data-uid="Hi.NcParsers.SoftNcRunner.GetSourcedActEntrysFromNode*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_GetSourcedActEntrysFromNode_Hi_Common_Collections_LazyLinkedListNode_Hi_NcParsers_Syntaxs_SyntaxPiece__Hi_NcParsers_NcDiagnosticProgress_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetSourcedActEntrysFromNode(Hi.Common.Collections.LazyLinkedListNode{Hi.NcParsers.Syntaxs.SyntaxPiece},Hi.NcParsers.NcDiagnosticProgress,System.Threading.CancellationToken)">
GetSourcedActEntrysFromNode(LazyLinkedListNode&lt;SyntaxPiece&gt;, NcDiagnosticProgress, CancellationToken)
<h3 id="Hi_NcParsers_SoftNcRunner_GetSourcedActEntrysFromNode_Hi_Common_Collections_LazyLinkedListNode_Hi_NcParsers_Syntaxs_SyntaxPiece__Hi_NcParsers_NcDiagnosticProgress_System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.GetSourcedActEntrysFromNode(Hi.Common.Collections.LazyLinkedListNode{Hi.NcParsers.Syntaxs.SyntaxPiece},Hi.NcParsers.NcDiagnosticProgress,System.Collections.Generic.List{Hi.NcParsers.Dependencys.INcDependency},System.Threading.CancellationToken)">
GetSourcedActEntrysFromNode(LazyLinkedListNode&lt;SyntaxPiece&gt;, NcDiagnosticProgress, List&lt;INcDependency&gt;, CancellationToken)
</h3>
@@ -775,7 +828,7 @@ updates the source <a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; GetSourcedActEntrysFromNode(LazyLinkedListNode&lt;SyntaxPiece&gt; startNode, NcDiagnosticProgress ncDiagnosticProgress, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; GetSourcedActEntrysFromNode(LazyLinkedListNode&lt;SyntaxPiece&gt; startNode, NcDiagnosticProgress ncDiagnosticProgress, List&lt;INcDependency&gt; ncDependencyList, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -785,6 +838,10 @@ updates the source <a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">
</dd>
<dt><code>ncDiagnosticProgress</code> <a class="xref" href="Hi.NcParsers.NcDiagnosticProgress.html">NcDiagnosticProgress</a></dt>
<dd><p>Sink for semantic exceptions.</p>
</dd>
<dt><code>ncDependencyList</code> <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><p>Proxy-resolved dependency list (see
<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList">GetEffectiveNcDependencyList()</a>) handed to each semantic's <code>Resolve</code>.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Cancellation token (checked between blocks).</p>
@@ -858,6 +915,92 @@ Since the folder can be moving with the configuration file.</p>
<a id="Hi_NcParsers_SoftNcRunner_PopulateLegacyMachineConfig_" data-uid="Hi.NcParsers.SoftNcRunner.PopulateLegacyMachineConfig*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_PopulateLegacyMachineConfig_System_Xml_Linq_XElement_System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__" data-uid="Hi.NcParsers.SoftNcRunner.PopulateLegacyMachineConfig(System.Xml.Linq.XElement,System.Collections.Generic.List{Hi.NcParsers.Dependencys.INcDependency})">
PopulateLegacyMachineConfig(XElement, List&lt;INcDependency&gt;)
</h3>
<div class="markdown level1 summary"><p>Populates legacy machine config — home position, tooling pose/time, rapid
rates, and stroke limits — from a legacy <code>HardNcEnv</code> XML element onto
<code class="paramref">targetDeps</code>. Split out of <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_FromLegacyNcEnvXml_System_Xml_Linq_XElement_">FromLegacyNcEnvXml(XElement)</a>
so it runs against the proxy-resolved host list
(<a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_GetEffectiveNcDependencyList">GetEffectiveNcDependencyList()</a>) after the parameter-table
proxy has materialized its host table — the Fanuc-family parameter table
(which implements <a class="xref" href="Hi.NcParsers.Dependencys.IHomeMcConfig.html">IHomeMcConfig</a> / <a class="xref" href="Hi.NcParsers.Dependencys.IRapidFeedrateConfig.html">IRapidFeedrateConfig</a> /
<a class="xref" href="Hi.NcParsers.Dependencys.IStrokeLimitConfig.html">IStrokeLimitConfig</a>) is no longer a concrete entry on the runner.
No-op for configs with no matching provider.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void PopulateLegacyMachineConfig(XElement ncEnvXml, List&lt;INcDependency&gt; targetDeps)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>ncEnvXml</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>The inner XML element of the legacy <code>HardNcEnv</code>.</p>
</dd>
<dt><code>targetDeps</code> <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><p>The proxy-resolved dependency list holding the machine-config providers.</p>
</dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_PopulateLegacyPerCaseData_" data-uid="Hi.NcParsers.SoftNcRunner.PopulateLegacyPerCaseData*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_PopulateLegacyPerCaseData_System_Xml_Linq_XElement_System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__" data-uid="Hi.NcParsers.SoftNcRunner.PopulateLegacyPerCaseData(System.Xml.Linq.XElement,System.Collections.Generic.List{Hi.NcParsers.Dependencys.INcDependency})">
PopulateLegacyPerCaseData(XElement, List&lt;INcDependency&gt;)
</h3>
<div class="markdown level1 summary"><p>Populates the legacy per-case tables — tool offsets, work coordinate
offsets, and (Heidenhain) datum preset/shift tables — from a legacy
<code>HardNcEnv</code> XML element into <code class="paramref">targetDeps</code>. Split out
of <a class="xref" href="Hi.NcParsers.SoftNcRunner.html#Hi_NcParsers_SoftNcRunner_FromLegacyNcEnvXml_System_Xml_Linq_XElement_">FromLegacyNcEnvXml(XElement)</a> so the per-case values land on the
owning project's <a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyListHost.html#Hi_NcParsers_Dependencys_INcDependencyListHost_PerCaseNcDependencyList">PerCaseNcDependencyList</a>
(where its proxies have materialized the real tables), not on the shared
runner. No-op when <code class="paramref">targetDeps</code> has no matching table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void PopulateLegacyPerCaseData(XElement ncEnvXml, List&lt;INcDependency&gt; targetDeps)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>ncEnvXml</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>The inner XML element of the legacy <code>HardNcEnv</code>.</p>
</dd>
<dt><code>targetDeps</code> <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><p>The host dependency list holding the materialized per-case tables.</p>
</dd>
</dl>
<a id="Hi_NcParsers_SoftNcRunner_Reg_" data-uid="Hi.NcParsers.SoftNcRunner.Reg*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_Reg_Hi_Common_XmlUtils_XFactory_" data-uid="Hi.NcParsers.SoftNcRunner.Reg(Hi.Common.XmlUtils.XFactory)">
@@ -894,36 +1037,40 @@ boot paths.</p>
<a id="Hi_NcParsers_SoftNcRunner_RunControlLines_" data-uid="Hi.NcParsers.SoftNcRunner.RunControlLines*"></a>
<a id="Hi_NcParsers_SoftNcRunner_RunNcLines_" data-uid="Hi.NcParsers.SoftNcRunner.RunNcLines*"></a>
<h3 id="Hi_NcParsers_SoftNcRunner_RunControlLines_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_MachiningSession_Hi_MachiningProcs_SessionProgress_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.RunControlLines(System.String,System.Collections.Generic.IEnumerable{System.String},Hi.MachiningProcs.MachiningSession,Hi.MachiningProcs.SessionProgress,System.Threading.CancellationToken)">
RunControlLines(string, IEnumerable&lt;string&gt;, MachiningSession, SessionProgress, CancellationToken)
<h3 id="Hi_NcParsers_SoftNcRunner_RunNcLines_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_MachiningSession_Hi_MachiningProcs_StepDiagnosticProgress_Hi_NcParsers_NcDiagnosticProgress_System_Threading_CancellationToken_" data-uid="Hi.NcParsers.SoftNcRunner.RunNcLines(System.String,System.Collections.Generic.IEnumerable{System.String},Hi.MachiningProcs.MachiningSession,Hi.MachiningProcs.StepDiagnosticProgress,Hi.NcParsers.NcDiagnosticProgress,System.Threading.CancellationToken)">
RunNcLines(string, IEnumerable&lt;string&gt;, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Runs raw Control lines and yields source sentence and Act pairs.</p>
<div class="markdown level1 summary"><p>Runs raw NC program lines and yields source sentence and Act pairs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; RunControlLines(string relFilePath, IEnumerable&lt;string&gt; lines, MachiningSession machiningSession, SessionProgress sessionProgress, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;SourcedActEntry&gt; RunNcLines(string relFilePath, IEnumerable&lt;string&gt; lines, MachiningSession machiningSession, StepDiagnosticProgress stepDiagnosticProgress, NcDiagnosticProgress ncDiagnosticProgress, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>relFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The relative path of the control file</p>
<dd><p>The relative path of the NC program file</p>
</dd>
<dt><code>lines</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd><p>The enumerable collection of command (control code) lines</p>
<dd><p>The enumerable collection of NC program lines</p>
</dd>
<dt><code>machiningSession</code> <a class="xref" href="Hi.MachiningProcs.MachiningSession.html">MachiningSession</a></dt>
<dd><p>Session-scoped state shared across multiple
<a class="xref" href="Hi.Numerical.IControlRunner.html#Hi_Numerical_IControlRunner_RunControlLines_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_MachiningSession_Hi_MachiningProcs_SessionProgress_System_Threading_CancellationToken_">RunControlLines(string, IEnumerable&lt;string&gt;, MachiningSession, SessionProgress, CancellationToken)</a> calls (e.g. lazy-initialized pipeline state,
<a class="xref" href="Hi.Numerical.INcRunner.html#Hi_Numerical_INcRunner_RunNcLines_System_String_System_Collections_Generic_IEnumerable_System_String__Hi_MachiningProcs_MachiningSession_Hi_MachiningProcs_StepDiagnosticProgress_Hi_NcParsers_NcDiagnosticProgress_System_Threading_CancellationToken_">RunNcLines(string, IEnumerable&lt;string&gt;, MachiningSession, StepDiagnosticProgress, NcDiagnosticProgress, CancellationToken)</a> calls (e.g. lazy-initialized pipeline state,
file-index counter).</p>
</dd>
<dt><code>sessionProgress</code> <a class="xref" href="Hi.MachiningProcs.SessionProgress.html">SessionProgress</a></dt>
<dd></dd>
<dt><code>stepDiagnosticProgress</code> <a class="xref" href="Hi.MachiningProcs.StepDiagnosticProgress.html">StepDiagnosticProgress</a></dt>
<dd><p>Step-anchored <a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>-channel sink.</p>
</dd>
<dt><code>ncDiagnosticProgress</code> <a class="xref" href="Hi.NcParsers.NcDiagnosticProgress.html">NcDiagnosticProgress</a></dt>
<dd><p>NC-pipeline diagnostic sink, threaded in as an input so the runner stays host-agnostic (the caller injects it; the production caller passes the service-scoped instance, standalone tests pass their own).</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Cancellation token to cancel the operation</p>
</dd>