This commit is contained in:
2025-10-01 15:57:54 +08:00
parent 627b6b2ad3
commit ef1af3544e
31 changed files with 105 additions and 146 deletions
@@ -117,10 +117,10 @@
<ul>
<li>Geom/Box3dControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/box3d-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/Box3dHub.cs</li>
</ul>
</article>
@@ -108,10 +108,10 @@
<ul>
<li>Geom/CylindroidControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/cylindroid-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/CylindroidHub.cs</li>
</ul>
</article>
@@ -102,10 +102,10 @@
<ul>
<li>Geom/ExtendedCylinderControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/extended-cylinder-panel.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/ExtendedCylinderHub.cs</li>
</ul>
</article>
@@ -122,10 +122,10 @@
<ul>
<li>Geom/GeomCombinationControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/geom-combination-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/GeomCombinationHub.cs (to be created)</li>
</ul>
</article>
@@ -128,10 +128,11 @@
<ul>
<li>Geom/GeometryManagementPanel</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/geom-manage-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>wwwroot/geom/geometry-management-panel.js</li>
<li>Geom/GeomHub.cs</li>
<li>Geom/GeometryController.cs</li>
</ul>
</article>
@@ -106,10 +106,11 @@
<ul>
<li>Geom/RuntimeGeomPanel</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/runtime-geom-panel.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/RuntimeGeomHub.cs (to be created)</li>
<li>Geom/GeometryController.cs</li>
</ul>
</article>
@@ -107,10 +107,10 @@
<ul>
<li>Geom/StlFileControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/stlfile-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/StlFileHub.cs</li>
</ul>
</article>
@@ -123,10 +123,10 @@
<ul>
<li>Geom/TransformationGeomControl</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/geom/transformation-geom-control.js</li>
<li>Controller/Geom/GeomController.cs</li>
<li>Geom/TransformationGeomHub.cs (to be created)</li>
</ul>
</article>
@@ -120,10 +120,9 @@
<ul>
<li>Geom/PolarResolution2dPanel</li>
</ul>
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
<h3 id="web-service-application-source-code-path">Web Service Application Source Code Path</h3>
<ul>
<li>wwwroot/widget/polar-resolution-2d-panel.js</li>
<li>Controller/Widget/WidgetController.cs</li>
</ul>
</article>
@@ -152,11 +152,12 @@ execute NC files, and properly manage project resources using
<h2 id="Sample_Machining_DemoUseMachiningProject_remarks">Remarks</h2>
<div class="markdown level0 remarks"><h3 id="source-code">Source Code</h3>
<pre><code class="lang-csharp" name="SampleCode">using System;
<pre><code class="lang-csharp" name="SampleCode">using Hi.Common.FileLines;
using Hi.Common.Messages;
using Hi.MachiningProcs;
using Hi.Common.FileLines;
using Hi.HiNcKits;
using Hi.MachiningProcs;
using System;
using System.IO;
namespace Sample.Machining
{
@@ -184,6 +185,8 @@ namespace Sample.Machining
#region EventHandling
Console.WriteLine($&quot;Set message event.&quot;);
using StreamWriter writer = new StreamWriter(&quot;msg.txt&quot;);
//show message if something abnormal.
machiningProject.SessionMessageHost.CollectionItemAdded += pack =&gt;
{
@@ -192,7 +195,7 @@ namespace Sample.Machining
pack.Tags.Contains(MessageFlag.Exception.ToString()))
{
var sourceCommand = pack.SourceCommand;
Console.WriteLine($&quot;{pack.Message} At \&quot;{sourceCommand?.FilePath}\&quot; (Line {sourceCommand?.GetLineNo()}) \&quot;{sourceCommand?.Line}\&quot;&quot;);
writer.WriteLine($&quot;{pack.Message} At \&quot;{sourceCommand?.FilePath}\&quot; (Line {sourceCommand?.GetLineNo()}) \&quot;{sourceCommand?.Line}\&quot;&quot;);
}
};
Console.WriteLine($&quot;Set machining step event.&quot;);