This commit is contained in:
2025-09-15 00:18:25 +08:00
parent 6e1c76386e
commit 6a4e515562
59 changed files with 3726 additions and 2509 deletions
@@ -497,6 +497,37 @@ Uses the default MongoDB connection.</p>
<a id="Hi_MachiningProcs_MachiningProject_CsvRunner_" data-uid="Hi.MachiningProcs.MachiningProject.CsvRunner*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_CsvRunner" data-uid="Hi.MachiningProcs.MachiningProject.CsvRunner">
CsvRunner
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public CsvRunner CsvRunner { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Numerical.FilePlayers.CsvRunner.html">CsvRunner</a></dt>
<dd></dd>
</dl>
<a id="Hi_MachiningProcs_MachiningProject_DictionaryColorGuide_" data-uid="Hi.MachiningProcs.MachiningProject.DictionaryColorGuide*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_DictionaryColorGuide" data-uid="Hi.MachiningProcs.MachiningProject.DictionaryColorGuide">
@@ -1438,8 +1469,8 @@ Ensures proper initialization of workpiece properties.</p>
<a id="Hi_MachiningProcs_MachiningProject_Act_" data-uid="Hi.MachiningProcs.MachiningProject.Act*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_Act_Hi_Numerical_Acts_IAct_Hi_MachiningSteps_ISourceCommand_System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.MachiningProcs.MachiningProject.Act(Hi.Numerical.Acts.IAct,Hi.MachiningSteps.ISourceCommand,System.Nullable{System.Threading.CancellationToken})">
Act(IAct, ISourceCommand, CancellationToken?)
<h3 id="Hi_MachiningProcs_MachiningProject_Act_Hi_Numerical_Acts_IAct_Hi_Common_FileLines_IIndexedFileLine_System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.MachiningProcs.MachiningProject.Act(Hi.Numerical.Acts.IAct,Hi.Common.FileLines.IIndexedFileLine,System.Nullable{System.Threading.CancellationToken})">
Act(IAct, IIndexedFileLine, CancellationToken?)
</h3>
@@ -1448,7 +1479,7 @@ Ensures proper initialization of workpiece properties.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Act(IAct act, ISourceCommand sourceCommand = null, CancellationToken? cancellationToken = null)</code></pre>
<pre><code class="lang-csharp hljs">public void Act(IAct act, IIndexedFileLine sourceCommand = null, CancellationToken? cancellationToken = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -1456,7 +1487,7 @@ Ensures proper initialization of workpiece properties.</p>
<dt><code>act</code> <a class="xref" href="Hi.Numerical.Acts.IAct.html">IAct</a></dt>
<dd><p>The act to execute.</p>
</dd>
<dt><code>sourceCommand</code> <a class="xref" href="Hi.MachiningSteps.ISourceCommand.html">ISourceCommand</a></dt>
<dt><code>sourceCommand</code> <a class="xref" href="Hi.Common.FileLines.IIndexedFileLine.html">IIndexedFileLine</a></dt>
<dd><p>The source command that triggered the act.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
@@ -1783,6 +1814,39 @@ Since the folder can be moving with the configuration file.</p>
<a id="Hi_MachiningProcs_MachiningProject_PlayCsvFile_" data-uid="Hi.MachiningProcs.MachiningProject.PlayCsvFile*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_PlayCsvFile_System_String_System_String_" data-uid="Hi.MachiningProcs.MachiningProject.PlayCsvFile(System.String,System.String)">
PlayCsvFile(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 void PlayCsvFile(string baseDirectory, string relFilePath)</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></dd>
<dt><code>relFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="Hi_MachiningProcs_MachiningProject_PlayNc_" data-uid="Hi.MachiningProcs.MachiningProject.PlayNc*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_PlayNc_System_String_System_String_" data-uid="Hi.MachiningProcs.MachiningProject.PlayNc(System.String,System.String)">
@@ -1831,15 +1895,15 @@ Since the folder can be moving with the configuration file.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void PlayNcFile(string rootDirectory, string relNcFilePath)</code></pre>
<pre><code class="lang-csharp hljs">public void PlayNcFile(string baseDirectory, string relFilePath)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>rootDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Root directory for resolving relative paths</p>
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Base directory for resolving relative paths</p>
</dd>
<dt><code>relNcFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dt><code>relFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Relative path to the NC file</p>
</dd>
</dl>
@@ -1857,8 +1921,8 @@ Since the folder can be moving with the configuration file.</p>
<a id="Hi_MachiningProcs_MachiningProject_ProcAct_" data-uid="Hi.MachiningProcs.MachiningProject.ProcAct*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_ProcAct_Hi_Numerical_Acts_IAct_Hi_MachiningSteps_ISourceCommand_System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.MachiningProcs.MachiningProject.ProcAct(Hi.Numerical.Acts.IAct,Hi.MachiningSteps.ISourceCommand,System.Nullable{System.Threading.CancellationToken})">
ProcAct(IAct, ISourceCommand, CancellationToken?)
<h3 id="Hi_MachiningProcs_MachiningProject_ProcAct_Hi_Numerical_Acts_IAct_Hi_Common_FileLines_IIndexedFileLine_System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.MachiningProcs.MachiningProject.ProcAct(Hi.Numerical.Acts.IAct,Hi.Common.FileLines.IIndexedFileLine,System.Nullable{System.Threading.CancellationToken})">
ProcAct(IAct, IIndexedFileLine, CancellationToken?)
</h3>
@@ -1867,7 +1931,7 @@ Since the folder can be moving with the configuration file.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;object&gt; ProcAct(IAct act, ISourceCommand sourceCommand = null, CancellationToken? cancellationToken = null)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;object&gt; ProcAct(IAct act, IIndexedFileLine sourceCommand = null, CancellationToken? cancellationToken = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -1875,7 +1939,7 @@ Since the folder can be moving with the configuration file.</p>
<dt><code>act</code> <a class="xref" href="Hi.Numerical.Acts.IAct.html">IAct</a></dt>
<dd><p>The act to process.</p>
</dd>
<dt><code>sourceCommand</code> <a class="xref" href="Hi.MachiningSteps.ISourceCommand.html">ISourceCommand</a></dt>
<dt><code>sourceCommand</code> <a class="xref" href="Hi.Common.FileLines.IIndexedFileLine.html">IIndexedFileLine</a></dt>
<dd><p>The source command that triggered the act.</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
@@ -1992,6 +2056,44 @@ Since the folder can be moving with the configuration file.</p>
<a id="Hi_MachiningProcs_MachiningProject_RunCsvFile_" data-uid="Hi.MachiningProcs.MachiningProject.RunCsvFile*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_RunCsvFile_System_String_System_String_" data-uid="Hi.MachiningProcs.MachiningProject.RunCsvFile(System.String,System.String)">
RunCsvFile(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 IEnumerable&lt;Action&gt; RunCsvFile(string baseDirectory, string relFilePath)</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></dd>
<dt><code>relFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<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="https://learn.microsoft.com/dotnet/api/system.action">Action</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_MachiningProcs_MachiningProject_RunNc_" data-uid="Hi.MachiningProcs.MachiningProject.RunNc*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_RunNc_System_String_System_String_" data-uid="Hi.MachiningProcs.MachiningProject.RunNc(System.String,System.String)">
@@ -2046,107 +2148,16 @@ Since the folder can be moving with the configuration file.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Action&gt; RunNcFile(string rootDirectory, string relNcFilePath)</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Action&gt; RunNcFile(string baseDirectory, string relFilePath)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>rootDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Root directory for resolving relative paths</p>
</dd>
<dt><code>relNcFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Relative path to the NC file</p>
</dd>
</dl>
<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="https://learn.microsoft.com/dotnet/api/system.action">Action</a>&gt;</dt>
<dd><p>An enumerable of actions to be executed</p>
</dd>
</dl>
<a id="Hi_MachiningProcs_MachiningProject_RunNcFile_" data-uid="Hi.MachiningProcs.MachiningProject.RunNcFile*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_RunNcFile_System_String_System_String_System_Threading_CancellationToken_" data-uid="Hi.MachiningProcs.MachiningProject.RunNcFile(System.String,System.String,System.Threading.CancellationToken)">
RunNcFile(string, string, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Runs an NC file from the specified path with cancellation support.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Action&gt; RunNcFile(string rootDirectory, string relNcFilePath, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>rootDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Root directory for resolving relative paths. If the value is null, <a class="xref" href="Hi.MachiningProcs.MachiningProject.html#Hi_MachiningProcs_MachiningProject_BaseDirectory">BaseDirectory</a> substitudes the value.</p>
</dd>
<dt><code>relNcFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Relative path to the NC file</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Token to monitor for cancellation requests</p>
</dd>
</dl>
<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="https://learn.microsoft.com/dotnet/api/system.action">Action</a>&gt;</dt>
<dd><p>An enumerable of actions to be executed</p>
</dd>
</dl>
<a id="Hi_MachiningProcs_MachiningProject_RunRawNcLines_" data-uid="Hi.MachiningProcs.MachiningProject.RunRawNcLines*"></a>
<h3 id="Hi_MachiningProcs_MachiningProject_RunRawNcLines_System_String_System_Collections_Generic_IEnumerable_System_String__System_Threading_CancellationToken_" data-uid="Hi.MachiningProcs.MachiningProject.RunRawNcLines(System.String,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)">
RunRawNcLines(string, IEnumerable&lt;string&gt;, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Runs NC commands from raw text lines.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Action&gt; RunRawNcLines(string relNcFilePath, IEnumerable&lt;string&gt; lines, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>relNcFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Name to associate with the NC program</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 NC command lines to execute</p>
</dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Token to monitor for cancellation requests</p>
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Base directory for resolving relative paths. If the value is null, <a class="xref" href="Hi.MachiningProcs.MachiningProject.html#Hi_MachiningProcs_MachiningProject_BaseDirectory">BaseDirectory</a> substitudes the value.</p>
</dd>
<dt><code>relFilePath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>