tune.
This commit is contained in:
@@ -7,10 +7,17 @@ using Hi.MongoUtils;
|
||||
|
||||
namespace Sample.Machining
|
||||
{
|
||||
/// <summary>
|
||||
/// This sample demonstrates how to work with an existing machining project file and execute NC programs. It covers the entire workflow from project loading to executing machining operations, including setting up event handlers for monitoring machining progress and error conditions. The example shows how to configure runtime parameters like collision detection and material removal rate (MRR) monitoring, execute NC files, and properly clean up resources after machining is complete. It's particularly useful for applications that need to automate the execution of machining operations and handle events during the simulation process.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// ### Source Code
|
||||
///
|
||||
/// [!code-csharp[SampleCode](~/../Hi.Sample/Machining/DemoUseMachiningProject.cs)]
|
||||
/// </remarks>
|
||||
public static class DemoUseMachiningProject
|
||||
{
|
||||
#region LoadProjectFileAndRunNcFiles
|
||||
static void LoadProjectFileAndRunNcFiles()
|
||||
static void Main()
|
||||
{
|
||||
#region LicenseAndDatabaseSetup
|
||||
Console.WriteLine($"License Login.");
|
||||
@@ -82,13 +89,5 @@ namespace Sample.Machining
|
||||
Console.WriteLine($"Program end.");
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Main
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
LoadProjectFileAndRunNcFiles();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user