fix SoftNcRunner GM code normalization.

This commit is contained in:
2026-05-16 18:08:13 +08:00
parent e026da61b3
commit 8b285cc863
765 changed files with 18689 additions and 9785 deletions
@@ -150,12 +150,12 @@
<hr>
<h2 id="2-configure-time-mapping">2. Configure Time Mapping</h2>
<h3 id="strategy-a-one-to-one-mapping-mapsinglebycsvfile">Strategy A: One-to-One Mapping (MapSingleByCsvFile)</h3>
<p><a class="xref" href="../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_MapSingleByCsvFile_">MapSingleByCsvFile</a> reads a CSV file and uses time interpolation to map each data point to one simulation step.</p>
<p><a class="xref" href="../api/Hi.MachiningProcs.SessionShell.html#Hi_MachiningProcs_SessionShell_MapSingleByCsvFile_">MapSingleByCsvFile</a> reads a CSV file and uses time interpolation to map each data point to one simulation step.</p>
<pre><code class="lang-csharp">PlayNcFile(&quot;NC/file1.nc&quot;);
MapSingleByCsvFile(&quot;Data/sensor.csv&quot;);
</code></pre>
<h3 id="strategy-b-one-to-one-via-playcsvfile">Strategy B: One-to-One via PlayCsvFile</h3>
<p><a class="xref" href="../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_PlayCsvFile_">PlayCsvFile</a> can drive the simulation directly from CSV data, where each row becomes one step. Custom fields in the CSV are automatically available on each step.</p>
<p><a class="xref" href="../api/Hi.MachiningProcs.SessionShell.html#Hi_MachiningProcs_SessionShell_PlayCsvFile_">PlayCsvFile</a> can drive the simulation directly from CSV data, where each row becomes one step. Custom fields in the CSV are automatically available on each step.</p>
<pre><code class="lang-csharp">PlayCsvFile(&quot;Data/controller.csv&quot;);
</code></pre>
<h3 id="strategy-c-one-to-many-global-mapping-mapseriesbycsvfile">Strategy C: One-to-Many Global Mapping (MapSeriesByCsvFile)</h3>
@@ -237,7 +237,7 @@ X25. F10 ;@LineSelection(&quot;lineB&quot;, FirstTouch, null, LastTouch, null);
</code></pre>
</div>
<h3 id="map-on-selection-end">Map on Selection End</h3>
<p><a class="xref" href="../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_EnableMapOnSelectionEnd">EnableMapOnSelectionEnd</a> controls automatic mapping when a selection ends (default: <code>true</code>):</p>
<p><a class="xref" href="../api/Hi.MachiningProcs.SessionShell.html#Hi_MachiningProcs_SessionShell_EnableMapOnSelectionEnd">EnableMapOnSelectionEnd</a> controls automatic mapping when a selection ends (default: <code>true</code>):</p>
<pre><code class="lang-csharp">EnableMapOnSelectionEnd = true; // EndSelection triggers Map automatically
</code></pre>
<h3 id="clearing-mapping-data">Clearing Mapping Data</h3>
@@ -310,7 +310,7 @@ WriteStepFiles(&quot;Output/[NcName].step.csv&quot;);
<li><a class="xref" href="force-training.html">Workflow: Milling Force Parameter Training</a> — using mapped data for coefficient training</li>
<li><a class="xref" href="basic-simulation.html">Workflow: Basic Machining Simulation</a> — basic simulation setup</li>
<li><a class="xref" href="../manual/runtime/machining-step.html">Glossary: Machining Step</a> — step data model</li>
<li><a class="xref" href="../manual/runtime/runtime-api.html">Glossary: RuntimeApi Quick-Reference</a>RuntimeApi quick-reference</li>
<li><a class="xref" href="../manual/runtime/session-shell.html">Glossary: SessionShell Quick-Reference</a>SessionShell quick-reference</li>
<li><a class="xref" href="examples/mapping-demo.html">Example Project: Mapping Controller and Sensor Data to Simulated NC Toolpaths and Updating Milling Coefficients</a> — mapping demo example project</li>
<li><a class="xref" href="examples/milling-training-dynamometer.html">Example Project: Training Milling Coefficients with a Dynamometer</a> — dynamometer training example project</li>
</ul>