This commit is contained in:
2025-04-09 21:41:13 +08:00
parent 11ff5e343d
commit fc4063516d
7 changed files with 42 additions and 14 deletions
+9 -1
View File
@@ -22,6 +22,14 @@ using System.IO;
namespace Sample.Machining
{
/// <summary>
/// This example demonstrates how to create a complete machining project from scratch using HiAPI. It shows the step-by-step process of building all necessary components, including defining custom milling cutters with specific parameters (helix angle, rake angle, etc.), configuring tool holders, setting up a machining tool house with multiple tools, defining the fixture and workpiece geometry, and configuring the machine chain. The sample also demonstrates how to set workpiece material properties and generate the final project XML file. This example is particularly valuable for developers who need to programmatically create complete machining projects without using the HiNC GUI.
/// </summary>
/// <remarks>
/// ### Source Code
///
/// [!code-csharp[SampleCode](~/../Hi.Sample/Machining/DemoBuildMachiningProject.cs)]
/// </remarks>
public static class DemoBuildMachiningProject
{
#region CreateMillingCutter1
@@ -125,7 +133,7 @@ namespace Sample.Machining
#region TestMethod
[STAThread]
public static void Test()
static void Main()
{
Console.WriteLine($"License Login.");
License.LogInAll();